Accessing Audio Waveform.

Can unity for instance get the height of a variable based off of the waveform??

For example: Generate 1 cube for each second of waveform and change the height based on the volume of the waveform.

http://unity3d.com/support/documentation/ScriptReference/AudioListener.GetOutputData.html or
http://unity3d.com/support/documentation/ScriptReference/AudioListener.GetSpectrumData.html