Is there a JavaScript equivalent to ActionScript's channel.leftPeak
or channel.rightPeak
. This is used for sound programming such as for a VU meter. I am trying to build a sound application, but I was avoiding using Flash and ActionScript since it is for a website. I was wondering if it was possible to do it in JavaScript. The basic concept is just play a song and be able to see the visualization of it through the spectrum analyzer or VU Meter.
Asked
Active
Viewed 1.6k times
5

Josue Espinosa
- 5,009
- 16
- 47
- 81

lomas09
- 1,114
- 4
- 12
- 28
-
3A VU meter is not an equalizer. A spectrum analyzer is not an equalizer. – Brad Jun 14 '12 at 20:52
-
well thats my bad. But the idea is there, I want to create a graphic visualizer, but I want to avoid actionsript and use javascript instead. Is it possible? – lomas09 Jun 14 '12 at 20:58
-
http://stackoverflow.com/a/3761407/362536 Unfortunately, your options are very limited. – Brad Jun 14 '12 at 20:59
-
[Similar question](http://stackoverflow.com/q/9516324/352796). – katspaugh Jun 14 '12 at 21:03
-
1Just did a bit of browsing around, came back with the same answer as others here, doesn't look like it's entirely possible in all browsers/environments but here's some links that might help you get started for those that do offer support: http://www.schillmania.com/projects/soundmanager2/ http://html5doctor.com/html5-audio-the-state-of-play/ – shaunhusain Jun 14 '12 at 21:46
-
Removed Flash Tag since you not looking for a flash solution and added animation tag instead. – arttronics Jun 14 '12 at 22:21
1 Answers
13
What you need, based on your question, is JavaScript SoundManager2 plugin.
The demo page for the Spectrum Analyzer / VU Meter visuals are HERE
Screenshot:
Edit: Also consider wavesurfer.js featuring "Seekable waveform using WebAudio and Canvas".

arttronics
- 9,957
- 2
- 26
- 62