Chakaharta

… purveyor of funky beats and assorted electric treats …

Fractal Wavetables

Posted on | March 20, 2009 | No Comments

floatfractBased on work by com­poser Ter­ran Olson, I’m releas­ing a Pro­cess­ing applet that lets you play with recursive/fractal sound syn­the­sis by set­ting a few sliders.

Back­ground

Inspired by an arti­cle on CDM, and Ter­ran Olson’s work in par­tic­u­lar, I dug into cre­at­ing a slightly more gen­eral ver­sion of frac­tal set synthesis.

In essence, you use a bank of slid­ers to give the pro­gram a wavetable “seed”, which is imme­di­ately sub­di­vided into sound — each sam­ple is replaced by a copy of the wavetable, mul­ti­plied by the old sam­ple value, and so on.…

This recur­sion con­tin­ues until the desired length of audio data has been gen­er­ated. The ini­tial value always begins at “1″.  For a seed of “1 0.5 1″, you get the fol­low­ing as the first three steps:

1 =>
1 0.5 1 =>
1 0.5 1 0.5 0.25 0.5 1 0.5 1 =>
1 0.5 1 0.5 0.25 0.5 1 0.5 1 0.5 0.25 0.5 0.25 0.125 0.25 0.5 0.25 0.5 1 0.5 1 0.5 0.25 0.5 1 0.5 1 => …

Try it

Click the thumb­nail below to run the applet in your browser (requires Java):

fractalwavetables2-300x233

Or get the down­load­able appli­ca­tion ver­sion here (so you can save out audio files):
Mac OS X ver­sion
Win­dows ver­sion
Linux ver­sion

If you’re curi­ous about how this was writ­ten, the pub­lic git repos­i­tory for this project lives at:
http://wiki.github.com/jdnorthrup/fractalwavetablesketch

Thoughts

Ini­tially, I found the whole idea that the music can be self-similar from the wave­form level, up to the “LFO” level, up to the rhyth­mic phrase, to the over­all flow of a pas­sage of sound — rather mind-expanding.

Inter­est­ingly, the sounds pro­duced from this can sound spec­tac­u­lar through deep reverbs and other pro­cess­ing. They’re almost the same ampli­tude at all fre­quen­cies in their range, quite unlike nat­ural har­monic spec­tra. Try run­ning a steep res­o­nant band­pass across some of the more com­plex sounds.

If you do any­thing cool with this app, please send me a link!

Sonograph of a fractal sound generated using this method.

Sono­graph of a frac­tal sound.

Comments

Leave a Reply