Heliops:
How can I get the fundamental frequency after processing the FFT ?
Define the characteristics of a fundamental frequency
Write code to analyze those characteristics.
There is much more of a problem with #1 than with #2. For example, with mixed sound sources, a tone could be a fundamental, or it could be an overtone of another fundamental.
Thank you for your answers. Now I have my graph but I still don't have the frequency. I don't see how to get the fundamental frequency because I haven't got any information about the signal. All the calculation is in the function. So i don't know how to get it.
My signal is received by a microphone connected to the ADC. Then the signal is used by the functions
fft_window(); // window the data for better frequency response
fft_reorder(); // reorder the data before doing the fft
fft_run(); // process the data in the fft
fft_mag_log(); // take the output of the fft
But in the library, there is nothing about how to get the frequency.