AS3 Sound Synthesis IV – Tone Class
In order to make the code so far a little more reusable, I moved it over into its own class, called Tone. I also implemented some optimizations and other little tricks. The most important is that instead of calculating the next batch of samples along with the envelope on every SAMPLE_DATA event, I precalculate all the samples within the envelope right up front, storing...
by Sushil at July 23rd, 2010 at 05:07 am