Given an FFT chain, this finds the bin with the strongest magnitude. It outputs the frequency of that bin, and its magnitude. No interpolation is done on the values.
This could be used as a primitive pitch detector, but in practice autocorrelation methods (as used in Pitch and Tartini) give more reliable pitch tracks. This simple approach gives poor resolution and robustness for that purpose. However it can be useful for other things...
buffer | |
freqlo | |
freqhi |
# freq, mag.