Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Real-time pitch detection using FFT [closed]

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.

like image 473
Niall Avatar asked Sep 23 '09 16:09

Niall


3 Answers

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.

like image 87
Dan Hook Avatar answered Oct 12 '22 23:10

Dan Hook


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.

like image 26
Tronic Avatar answered Oct 12 '22 22:10

Tronic


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

like image 27
P i Avatar answered Oct 12 '22 22:10

P i