Real-time pitch detection using FFT [closed]

2019-01-10 17:55发布

I'm trying to do real-time pitch detection using C++. I'm testing some code from performous (http://performous.org/), because everything else hasn't worked for me. I know for sure that this works, but i just cant get it to work. I've been trying this for a few weeks now, and I haven't been able to get any pitch detection code working.

3条回答
Ridiculous、
2楼-- · 2019-01-10 18:29

Instead of using input from the mic, you should create data of a known single frequency and run that through the program and see if it gets you the correct result. Then you can add harmonics to it and see if that works. Real world data is just too variable for initial testing.

查看更多
叼着烟拽天下
3楼-- · 2019-01-10 18:34

C/C++/Obj-C Real-time algorithm to ascertain Note (not Pitch) from Vocal Input

Check the accepted answer on this link.

I have scoured SO for an answer to this problem, and this is the most useful resource I have found.

It appears that Performous uses this algorithm, but it's hard to make out from the Performous code

EDIT: I have finally managed a working solution. e-mail me if interested sunfish|gmail|c0m

查看更多
Ridiculous、
4楼-- · 2019-01-10 18:36

Performous audio code has some optimizations, frequency limits and heuristics that make it only suitable for singing (and other similar tones). The optimal range is around 80-600 Hz.

查看更多
登录 后发表回答