After applying a FFT, I get a spectrum with multiple frequency bins. How to get the fundamental frequency from this spectrum using the cepstral method?
I've researched a lot, tryed a lot of codes and asked three times on stackoverflow (wich helped a LOT), and I am pretty sure that the cepstral method is the best to discover the fundamental frequency in my case. I just don't know how to do it.
If you guys know some ready-to-use code for cepstral, please paste it on your answer! Any other resources are welcome too.
Thanks again!
Peaks in the cepstrum identify periodicity in the frequency domain. If your source is clean there should be one peak in the cepstrum. The bin at which this occurs tells you the quefrency. There is a linear relation between this and the fundamental frequency of your input signal. To think about in non-mathematical terms: if the quefrency is 5, then your harmonics are 5 bins apart, which implies a fundamental at bin 5 in the frequency domain. You just translate this to a frequency in the usual way for an FFT. Try plotting the FFT magnitude and the cepstrum for a given input so that you can get a practical understanding of what is going on mathematically.