PureBasic Forum

Bit Twiddling Sound Synthesizer
Page 1 of 1

Author:  doctornash [ Mon Feb 24, 2014 12:20 pm ]
Post subject:  Bit Twiddling Sound Synthesizer


Distorts a humble sinewave into far more complex waveforms by converting each of its sample values into an integer that can be represented on the bits of one byte, then directly manipulating those bits like shifting them, rotating them, flipping them, re-arranging them and so on, and finally converting the integer value represented by the new bit pattern back into a sample value to output. Playable with a virtual or real midi keyboard. The technique even allows the sound to smoothly CHANGE while you play it (the closest analogy I guess is like what a filter does in traditional 'subtractive' synthesis). Frankly, I am surprised by the potential of this technique, which I have not seen explored in this manner elsewhere. For example, here are some waveforms at the start (Attack ie From), and the end (Release ie To) of a note:


Some sounds here:
Full information about the technique, what it can do, .pb source files, compiled app and sound files here:

Author:  doctornash [ Tue Mar 04, 2014 11:21 pm ]
Post subject:  Re: Bit Twiddling Sound Synthesizer

added waveform screenshots and direct link to sounds in original post

Author:  oreopa [ Tue Mar 04, 2014 11:42 pm ]
Post subject:  Re: Bit Twiddling Sound Synthesizer

Cool. Thanx for source... seems interesting.

Author:  Poshu [ Thu Mar 06, 2014 7:41 am ]
Post subject:  Re: Bit Twiddling Sound Synthesizer

This might be helpful in a game jam, thanks!

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group