Fundamental Frequency Definition

Just Evan's icon

Hello.

I'm trying to make a tuner that determines the fundamental frequency of a sample.

To do this, I need to analyze the spectrum and find the frequency at the highest loudness peak in a selected frequency range, for example 20-250 hertz.

How can i do this?

Possibly FFT, but I couldn't figure it out, maybe there is more detailed documentation other than the object help file?

Thanks!

lucas's icon

maybe using retune~ ?

Just Evan's icon

I tried it, but preferred fzero~ because it seemed more accurate to me.

However, I'm still looking for the method I described, and I probably forgot to mention that it might be worth accumulating spectrum frequencies to more accurately determine the fundamental frequency.