Pitch detection using FFT for trumpet

前端 未结 5 2193
甜味超标
甜味超标 2021-01-06 18:08

How do i get frequency using FFT? What\'s the right procedure and codes?

5条回答
  •  囚心锁ツ
    2021-01-06 18:43

    Pitch detection typically involves measuring the interval between harmonics in the power spectrum. The power spectrum is obtained form the FFT by taking the magnitude of the first N/2 bins (sqrt(re^2 + im^2)). However there are more sophisticated techniques for pitch detection, such as cepstral analysis, where we take the FFT of the log of the power spectrum, in order to identify periodicity in the spectral peaks.

提交回复
热议问题