Real-time pitch detection using FFT [closed]

孤人 提交于 2019-12-17 10:29:29

问题


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.


回答1:


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.




回答2:


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.




回答3:


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



来源:https://stackoverflow.com/questions/1466968/real-time-pitch-detection-using-fft

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!