FFT on iPhone to ignore background noise and find lower pitches

前端 未结 4 1817
轻奢々
轻奢々 2020-12-08 12:31

I have implemented Demetri\'s Pitch Detector project for the iPhone and hitting up against two problems. 1) any sort of background noise sends the frequency reading bananas

4条回答
  •  没有蜡笔的小新
    2020-12-08 13:04

    At the very least you need to apply a window function to your time domain data, prior to calculating the FFT. Without this step the power spectrum will contain artefacts (see: spectral leakage) which will interfere with your attempts at extracting pitch information.

    A simple Hann (aka Hanning) window should suffice.

提交回复
热议问题