This project has moved. For the latest updates, please go here.

Music pitch detection

Feb 2, 2016 at 1:07 AM
Anyone know of a good way to detect the pitch of music relative to the A note?

95% of western music (except for led zeppelin and a few others) uses A440hz, but A432hz sounds so much better since 432hz resonates perfectly with the ears and the water molecule.
In case you are interested:

I've created a small (free) app to detect the pitch of the music playing in Windows, it works fine with piano and similar instruments, simpler music, but it gets confused when there are too many different instruments being played, especially bass frequencies. The pitch detection I am using is which uses a modified Auto-correlation algorithm.

FFT on its own is no good, there are many different types of algorithms to detect pitch, but I'm not sure which one would be the best to use, and if there are existing pitch detection libraries that are coded in C#, but using a c/c++ dll would be fine I suppose.

I came across the C based library called Aubio, but before I try it out I would like to gather some guidance or knowledge from you guys.
Feb 4, 2016 at 1:21 PM
Auto-correlation is one of the better algorithms. It's really hard to detect pitch accurately if lots of different instruments are being played at the same time though.
Feb 5, 2016 at 6:51 AM
Ok I'll go down that path, thanks Mark.