A decent computer and lots of volume is recommended.
Well, due to the fear of slipping behind, I felt I better start learning the new Flash language, Actionscript 3, and at first glance, one of the coolest features is definitely the SoundMixer.computeSpectrum function.
This is a quick experiment which uses the spectrum data of a streaming mp3 to trigger animation. Although it dynamically reacts to the beat, there are elements of randomness in this example so the animation / visualisation is different every time.
I’ve seen a few Actionscript 3 visualisations before, though they tend to follow the graphic equaliser tradition, whereas I wanted something a little more creative.
I will release some source code as soon as I have built this into a robust class. I intend to build an easily customisable music visualisation program which can build visualisations from your own graphics with various configurable parameters.
Download: AS3 Audio VisualiserHave fun, but epileptics beware!
The track is Öngyilkos Vasárnap by Venetian Snares
truly incredible. im very new to as3, but ive been fooling around with your codes, and i have really been enjoying myself. thank you so much for this.
Hi,
I am currently working with Flash on an interactive media project in which sensors are used to detect how much a person is moving. The program will play a song/video while displaying a range box that moves up and down based on the intensity of the sound. The user must move faster or slower to keep their own intensity within the moving range box: otherwise the sound and animation begin to fade out. Oviously, your sound class would be great… I would actually love to use your entire peice in this project if possible. I am not looking to make money off of this project but I would make sure to add you into the credits and give you a link from my site.
Thanks for the consideration.
Hey Soulwire I’m a student studying graphic design just learning flash. I want to build an equalizer similar style to yours please can you help me? I downloaded your flash file and when testing it an error message came up. “Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.
at visualiser_and_mp3player_fla::MainTimeline/frame2()” I’m stuck any suggestions?
thanks for all the great tuts and sources.
i wanted to use some aspect from this with a tripped out pie chart.
It looks amazing, but color is crucial for the project. I took off all the random color function and it works for the most part… however I still get a random blue tint on some MCs. It seems to randomly effect different instances of MCs each time i test the movie.
any ideas on how to get rid of that?
thanks!
ok.. i figured out how to fix the color issue. Didn’t realize there were blending options on there.
how would one go about adding a playlist to this? so there would be tracks listed in the stage and a viewer could click on them to hear the song?
thanks for the help anyone!
nice work!
i got a bunch of computeSpectrum examples on my site as well, built with haXe
http://remixtechnology.com/tags/audio
This is excellent. Anyone have any progress on adding a playlist to this?
simply WOW
Hey!
This player is really fantastic.
I’ve been looking for a while now and this must be the best. I have an electro-punk band (myspace,com/nicerdicers) and would love to be able to project my own animations during our gigs using your script if it’s ok with you.
Do you think you could tell me, is that if I want to do, how can I tell the script to use input from the microphone instead of a .mp3 file? My knowledge of flash is constrained to pretty basic operations, and altough I get major parts of the code, I’m completely lost on how to perform this action.
thanks a lot for your time and congratulations
Hi Carlos,
You can use this script in any way you like mate! Sounds like it will look great at one of your shows.
Unfortunately you cannot currently use computeSpectrum or a similar method on microphone data from flash. It was a feature request for FP10 but hasn’t been implemented yet.
If you want to get sound from a microphone to power your visualisations in Flash, you could connect to a small server using a socket (check Google or the docs for it) so for example a small App written in a lower level language than Actionscript could retrieve microphone data and then pass it through the socket to Flash. That’s just one suggestion anyway. I might work on this when I get time as it would be a useful tool.
Good luck!
wow this so cool and simple
hi i have just stumbled across this page as i was looking up how to make visualisations controlled by music and was wondering if there was a guide for someone who has no clue on all the flash lingo. ie how to implement my own graphics and music.