How to Calculate Frequency & Amplitude in Flash AS3 with Flash Player 9
问题 How can I calculate Frequency & Amplitude in As3 with FP9. I got the all raw byte using SoundMixer.computeSpectrum(_testbytes, false, 0); var g:Graphics = this.graphics; g.clear(); g.lineStyle(0, 0x6600CC); g.moveTo(0, PLOT_HEIGHT); var m:Number = 0; for (var i:int = 0; i < 256; i++) { m = (_testbytes.readFloat() * 100); g.lineTo(i*2 , 100 - m); } g.lineTo(CHANNEL_LENGTH * 2, PLOT_HEIGHT); Now Can I get the frequency & amplitude data from it? 回答1: If you have a closer look at the