How to get the fundamental frequency from FFT?

Lucas Speranza picture Lucas Speranza · Feb 6, 2011 · Viewed 17.4k times · Source

I am developing a flash guitar, and the only apparent method to discover the frequency of the mic's data looks to be using FFT. Nevertheless, after something like 30 hours of research I could not discover the best way to do that. Should I use Harmonic Product Spectrum (HPS), Cepstrum or Maximum Likelihood? The tuner will have to show frequencys from 25 to 3000Hz.

Also, if someone knows about some open source code ready to find the fundamental frequency, please tell me. I can translate it to ActionScript.

Thanks!

Answer

shams picture shams · Apr 26, 2011

The simplest technique I've had success with is to use FFT and then perform a Harmonic Product Spectrum. It is simple to implement and not very resource intensive, you just need to correctly downsample your result FFT and make products.

The following question should also be useful: Detecting the fundamental frequency