Bit Twiddling Sound Synthesizer

Developed or developing a new product in PureBasic? Tell the world about it.
doctornash
Enthusiast
Enthusiast
Posts: 130
Joined: Thu Oct 20, 2011 7:22 am

Bit Twiddling Sound Synthesizer

Post 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
doctornash
Enthusiast
Enthusiast
Posts: 130
Joined: Thu Oct 20, 2011 7:22 am

Re: Bit Twiddling Sound Synthesizer

Post by doctornash »

added waveform screenshots and direct link to sounds in original post
User avatar
oreopa
Enthusiast
Enthusiast
Posts: 281
Joined: Sat Jun 24, 2006 3:29 am
Location: Edinburgh, Scotland.

Re: Bit Twiddling Sound Synthesizer

Post by oreopa »

Cool. Thanx for source... seems interesting.
Proud supporter of PB! * Musician * C64/6502 Freak
Poshu
Enthusiast
Enthusiast
Posts: 459
Joined: Tue Jan 25, 2005 7:01 pm
Location: Canada

Re: Bit Twiddling Sound Synthesizer

Post by Poshu »

This might be helpful in a game jam, thanks!
Post Reply