This demo will only work in Mozilla Firefox 4 or later. Start the player to see a spectrum analyser output of the audio data. The top visualiser has 128 frequency bands, whilst the bottom one is an aggregated 32 band version.
The excellent DSP.js library was used to convert the raw audio data to FFT.