This project has moved and is read-only. For the latest updates, please go here.

FFT Spectrum

Feb 9, 2010 at 1:22 AM


I want a Spectrum Analyzer for a music player that I want to develop. I came across NAudio, I tested the FFT and made a bar animation. But, why the left side is too high?

The image below describes what I'm talking about. I use the same code from SpectrumAnalyser.xaml.cs and a YScale of 6000.

How can I make the visualization more even?


Feb 9, 2010 at 2:10 PM

I've noticed that as well. I must admit the FFT was thrown in at the very last minute before a demo I was doing, and I never got round to investigating the cause of the high values on the left-hand-side. One suggestion I heard was that the presence of a DC offset can cause this, so perhaps a high-pass filter would help things along a bit.