ActionScript 3 Spectrum Analyzer

Basic Audio Spectrum Analyzer Screen Capture+ view Flash demo

After some deliberation, I decided to go ahead and start learning ActionScript 3 (but not necessarily Flex). I have some ideas for an image generation technique based on audio data. The first step toward that is the audio analysis.

I was initially going to attempt this using Processing, but after looking at the new AS3 language API, I found that ActionScript had the capabilities I needed. On top of that, we’re going to start moving to some AS3 development at work. So I can kill two birds with one stone.

Let me know if you’re interested in the source code for this. I need to clean it up a bit, but it might be useful to some folks.

[UPDATE]:

I’ve updated the song on the demo page to be something that’s much more beautiful and visually interesting. It’s a song called model d by a Japanese artist named so inagawa. The song is from a free netlabel release at unfoundsound’s free mp3 releases (unfound17). You can also download it from archive.org.

I’ve added the source code for the project to the demo page as well. Enjoy!

  • http://listing-doctor.com Cody Snider

    I’d love to look at your source. I’m working on a similar project and I would be interested to see what approach you’ve taken to your spectrum analysis.
    Thanks!
    - Cody

  • http://www.mikecreighton.com Mike Creighton

    Cody, you can find the source for this specific example on its demo page: http://todaycreate.com/wp-content/creations/2007/02/BasicAudioSpectrumAnalyzer/

    Additionally, because of the traffic I get to this page, I created another example that’s a bit easier to dig through: http://todaycreate.com/2009/01/17/another-computespectrum-example

    You can find the source for that one in a single text file underneath the embedded Flash piece. Good luck with your project!