AS3 Sound Visualization Engine
Remember when I used to take photographs and post them on flickr?
Well, I guess I’ve been distracted making things, rather than just recording them.
This is one of those things. A sound visualization engine built in Actionscript. It works by analyzing the raw data of an mp3 file, taking a snapshot of its sound wave every 31 milliseconds and placing it into a ByteArray. The ByteArray is fixed to 512 floating-point values, where the first 256 values represent the left channel, and the second 256 values represent the right channel of audio. I then loop through all 512 channels and assign animations based on each (again every 31 milliseconds). The animation effects are assigned randomly applying blurring, scaling, motion and sizing based on the sound wave values. For added effect I added a photo of cannon beach I took and masked it with the sound wave. After all the song is about a beach.
Check it out here: AS3 Sound Visualization Engine.
Music: Beachcomber Blues - Dolorean
Permalink: http://www.christeso.com/index.php/lab/as3-sound-visualization-engine/as3-sound-visualization-engine/


