How can I do real-time pitch detection in .Net?

前端 未结 3 382
时光说笑
时光说笑 2021-01-23 05:04

I want to make a program that detects the note that is being played in front of the microphone. I am testing the FFT function of Naudio, but with the tests that I did in audacit

3条回答
  •  佛祖请我去吃肉
    2021-01-23 05:28

    You are likely getting thrown off by harmonics. Have you tried testing with a sine wave to see if your NAudio's FFT is in the ballpark?

    See these references: http://cnx.org/content/m11714/latest/

    http://www.gamedev.net/community/forums/topic.asp?topic_id=506592&whichpage=1�

    Line 48 in Spectrum.cpp in the Audacity source code seems to be close to what you want. They also reference an IEEE paper by Tolonen and Karjalainen.

提交回复
热议问题