-
Flash audio visualisation - How to?
Hello,
I'm doing a study project in Flash, and I'm still basically a complete newbie in Flash. My idea is to create a mp3-player with all the basic funcitons and an extensive audio visualization for the mp3 waveform. Basically, a simpler version of WinAMPs Advanced Visualization Studio presets (not the whole studio, just a preset) is what I have in mind.
In other words, what I want to do is to be able to play a mp3, and have an visualization of some sort react to the music.
So, as I'm a newbie to Flash, I'm wondering what I need to do in order to get that music to affect the visualization based on the music's waveform or audio spectrum. In other words, different mp3s would be visualized differently. What is needed, and how difficult is it to implement?
Kaer
-
Self-portrait
http://www.flashkit.com/board/showthread.php?t=649910
FAQ #18
Youll need a 3rd party program to do this...
Artificial Memories v0.9.2b
"Preserving life's precious moments and making new ones"
© 2009 MemoryCorp - A Walmart company
-
Thank you, Mark.
Kaer
-
3DFA hobby scripter
-
Wrong, meaning you don't need a third party program to do us? Flash has come a long way since 2005, so there must be a solution!
This ancient post http://board.flashkit.com/board/show...light=waveform suggests to "read the sound forum FAQ entries on eq animation and level/waveform output" but it doesn't seem that info exists anymore.
What I'm looking to do is create a waveform animation based on a sound triggered by code. It doesn't necessarily need to be accurate, so visual trickery is fine. If there is some characteristic that can be read from the sound based on it's position, maybe I can just make a clip like they did here http://board.flashkit.com/board/show...light=waveform and fluctuate it's height based on that characteristic?
Any insight?
-
Looks like you can do this in AS3 for sure, but I'm not sure about AS2 (which I'm forced to code in for my project)
Flash Waveform Visualizer - cool demo, but no source code.
AS3
Flash Actionscript 3 Waveform Generation Class
Sound in Flash 10 (beta). Generating Waveforms, Timbre and Pitch.
Sound Visualization in Flash CS3
Third Party Tools
SwiftMP3 - shows levels, not waveform
FlashAmp - The lite version is good enough if you need to generate an amplitude array (demo is limited though). The user guide has code that matches sound position to array position so you can adjust your waveform clip.
If I nail an AS2 solution I'll share my findings.
-
try the computeSpectrum method of the SoundMixer class in AS3. It works wonders.
Follow the third link under AS3 in sirzooass' most recent reply.
-
3DFA hobby scripter
Demo
movie
some other audio files in the swf dictionary:
20_to20k.mp3
insane250-Insane_Kitty_Song_(ID_ 222620).mp3*
(copy filename in the upper field and click load)
* All songs are free Songs from newgrounds
Last edited by LewxX²; 12-09-2009 at 09:43 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|