
Tone Lab – Dynamic Audio Synth Toy in Flash
by scott on Dec.18, 2010, under Experiments, Flash
I’ve been working on synthesizing audio in Flash for about a year off and on and decided to make something usable. I plan to add sharing at some point if people seem to enjoy it enough to make it worth it. Let me know what you think!

Flash Linear Audio Envelopes
by scott on Feb.20, 2010, under Experiments, Flash, Games, Music, post
This morning a put together a quick and dirty audio envelope class to use with my Flash synth demo. It uses linear functions to determine attack, sustain and decay. I just realized that I misnamed decay, as it should be release, so I’ll fix that in the code. Here’s an explanation of sound envelopes for synthesis if you’re not familiar. The animated block mirrors the volume in the envelope.
My next step is to clean all of this up and make a propper package out of it, so check back for cleaner code in a couple days. After that I need to make optimizations to how the synthesis works so I can put it to use. This is very processor hungry right now because I’m doing a lot of calculations at sample rate (44.1kH). After that I plan on adding log and exponential functionality along with some other curves. I’ll get around to trying out Pixel Bender for optimizing this stuff once it gets too processor intensive to handle.
Short Attack
Long Attack
Long Release
Long Sustain
To play with the envelope, change the values in the initValues method in SoundDemo.as. There are two envelopes, one for sound and the other for the animation, because using the exact same levels don’t always produce an optimum animation. The maximum number of samples long the envelope can be right now is 88200 because of the lazy way I looped it. The project is completely purged of resources from others, so feel safe to use it in any projects you want.












Leave a Comment -
--------------------------------
Tags: audio, dynamic sound, experiment, Flash, post, synthesis