Page 1 of 1

Bit Twiddling Sound Synthesizer

Posted: Mon Feb 24, 2014 12:20 pm
by doctornash
Image

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:

Image

Some sounds here:
https://soundcloud.com/doctornash/bittw ... nth-medley
Full information about the technique, what it can do, .pb source files, compiled app and sound files here:
http://flexibeatz.weebly.com/bit-twiddler.html

Re: Bit Twiddling Sound Synthesizer

Posted: Tue Mar 04, 2014 11:21 pm
by doctornash
added waveform screenshots and direct link to sounds in original post

Re: Bit Twiddling Sound Synthesizer

Posted: Tue Mar 04, 2014 11:42 pm
by oreopa
Cool. Thanx for source... seems interesting.

Re: Bit Twiddling Sound Synthesizer

Posted: Thu Mar 06, 2014 7:41 am
by Poshu
This might be helpful in a game jam, thanks!