Sound vizualizer with Away3D
I keep playing with examples for upcoming Away3D tutorials on Flashmagazine. Here's a simple sound visualizer using Away3D. I store the average 512 samples in 20 values and use these to scale and color the cubes. I've spent way too much time playing with this one (without getting the results I wanted), so I better move on to the next example. I guess Beat Detection is a little harder than I thought...
This content requires Flash Player 9 (or a more recent version). You need to upgrade your Flash Player
The source will be in the tutorial and there's no interactivity on this one, just enjoy the music:)
Comments
no audio too :)
Posted by: hal | November 13, 2008 12:08 PM
I don't see a thing in FF. In IE I get this error:
SecurityError: Error #2121: Security sandbox violation: SoundMixer.computeSpectrum: http://www.flashgamer.com/a/Basic07_cube_music.swf cannot access . This may be worked around by calling Security.allowDomain.
at flash.media::SoundMixer$/computeSpectrum()
at Basic07_cube_music/Basic07_cube_music::onEnterFrame()[/Users/jensa/Documents/Flex Builder 3/Away3D_Tutorials/Basic07_cube_music.as:139]
Posted by: Anton Granik | November 13, 2008 01:14 PM
great visualizer and great song
thanks!
Posted by: ismael | November 13, 2008 11:11 PM
Having a hard time reproducing the errors mentioned here. Works fine in IE, FF, Opera and Chrome as well as Safari and FF on a Mac when I test it. Could it be that you tested just as I uploaded a version with a path-bug? I fixed that just minutes later...
Anyway - thanks for dropping by and giving feedback!
J
[update: Anton confirmed that it's now working. He and hal must have checked just as I had the faulty version out]
Posted by: Jensa | November 13, 2008 11:55 PM
Cooooool!
Just a question though, you seems to fancy Away3D over Papervision3D. Why?
Posted by: Thomas Gabrielsen | November 17, 2008 09:36 PM
Hei Thomas!
I did some tests with both Away3D and PV3D about half a year ago and made my choice based on what I found. For the project I was about to do, Away 3D simply performed better. There were also some really neat things that PV3d didn't have and I found the syntax in Away more intuitive.
Others may make a different decision, but I think Away3D is easier to get started with for the beginner. There's a lot of nice "default" things (Scene, camera, positioning) that I think make it easier to get started with. Then again, I've only spent maybe a week doing PV3D whereas I've spent a lot of hours on Away :)
J
Posted by: Jensa | November 18, 2008 03:52 PM
Hei Jensa
Thanks for your well explained answer. I'm looking forward to try your Away3D tutorial when it's done.
Thomas
Posted by: Thomas Gabrielsen | November 26, 2008 03:23 AM