5.02.2007

So here’s what I did

I created a simple synthesizer which at this point is more proof-of-concept than super-awesome synthesizer. I should have Reason 4.0: Flash ready next week :-P

Before explaining how I made this and where to go from here, it’s probably a good idea to first meet the synth:





You can choose between four sound waves (sine, square, triangle and saw) or white noise from the top buttons. The “Amplitude” slider controls the amplitude of the wave and “Pitch” controls the frequency. “Moogcut” controls the frequency cutoff of the sound and “Moogres” controls the resonance.

The visualizer (which I’ll also explain in a later post) can show the sound in either the frequency (”freq”) or time (”wave”) domains. For those not familiar with the nature of audio synthesis, a lot can be learned by looking at how the visual representation of sound is changed by just messing with the sliders. For example, the odd partials (octave multiples of sound’s fundamental frequency) of the square wave come out very nicely in the frequency domain representation. As you lower the cutoff frequency value, the amplitudes of the higher partials accordingly decrease. Cool!!!!

The number in the lower left corner of the synth is the current frame rate of your Flash player. If it is below around 30-ish, chances are the sound will come out a bit choppy because the computer isn’t filling the audio buffer fast enough. Quitting other apps, closing other brower windows and buying that new MacBook Pro you’ve been dreaming about may all help it run faster and smoother.

The source code for this is coming soon. I just need to clean up my code, install Flash CS3 (I developed this with the Flash 9 AS 3 preview) and make sure everything still works...

5 comments:

Anonymous said...

Hi there,

This is really nice work. You can make some great Four tet esq sounds! Maybe it could be turned into a visualisation tool as well?

I've been experimenting with triggering animations based on the sound spectrum.

You can see my attempt at actionscript 3 sound visualisation here, though its only a start.

Would be good to see some amalgamation of the two perhaps?

Keep up the good work...

Marcus Satellite said...

Hi Jordan,

Say, whatever became of your flash/reason synth? I am very interested in it, even if the code isn't too "clean".

I make a lot of microtonal music using Live, Reaktor, FM8, Absynth, etc.

I'd like to visualize different scales with flash and your synth. It would be a great teaching tool, as well as a scale-previewer.

thanks,
Marcus

Anonymous said...

Is there any source code available?

I'm very interested in see how it works, so far I have been playin around with this:

http://www.flashbrighton.org/wordpress/?p=9

But I haven't managed to play with the pitch.

Your example looks simpler and this why I would like to take a look inside.

Thanks and keep the good work up. :)

Anonymous said...

I would be very interested in seeing the source for this. We are doing a project where students would use sound as an application of periodic functions. It would be ideal for them to "hear" the result.

Anonymous said...

Oh man. I was looking to encode music into a flash file and your source code will definitely help me out