I had someone request the source code for my spectrum ring music visualizer, and I figured I may as well just release it here for anyone who wants it.
Update: Note that it will sometimes throw runtime errors in FP10. I haven’t had a chance to look into it, but I’m quite certain it never threw those errors in FP9. I’ll try to fix it when I have a few minutes.
If I remember correctly, it was my first attempt at playing with computeSpectrum and ByteArrays, so the code is likely a hacky mess, but hopefully it’s useful for someone. At the least, it might be fun to take a look at how the visual effects were achieved, and play with the numbers.
You can download the source here. Just drop an MP3 named “music.mp3” in the same directory and it should load and play it. All the code is in the AS file (the FLA is empty), so it should work as an ActionScript project in FlexBuilder.