Source: Summit Projects Flash Blog
This is the first of what I hope will be a series. We’ll call this part, Only Getting Halfway with AS3’s Built-In Sound Capabilities. I’ve spent close to a week working on a little application, which has so far turned out pretty nice. The end result is an AIR app that reads sound files, draws their waveforms, and then saves out a PNG of each sound’s waveform.
Easy peasy, right?
Sure enough, we thought this would be a pretty quick job. Just use the built-in SoundChannel.peakLeft and peakRight properties, or perhaps SoundMixer.computeSpectrum(). Load an MP3, set up a loop to play a Sound from an incremented position, and grab the peak values. Should take a few minutes, tops!
Except that that approach has several flaws.
0 comments:
Post a Comment