I have a small project I was hoping to use FMOD for. I am in the process of writing a small App in C# that monitors the line-in, or Mic and shows me the sound frequency or pitch of the audio signal present. Basically I am writing a Guitar Tuner customized for my specific needs, and was wondering if FMOD supported pitch detection, or if it was possible with out too much hassle to accomplish the same effect with FMOD.
I did a quick search, but didn’t notice any threads regarding this use of FMOD, just a few about spectrum analysis.
Any insight anyone could provide would be most appreciated.
- nonsequitur asked 12 years ago
Afaik, pitch detection is not trivial. The perceived pitch is, rougly explained, a combination of the amplitudes of all the harmonics of the fundamental frequency, so it can’t be derived from just the maximum of the spectrum.
This isn’t an fmod issue either, but I’d suggest you to do a google search for “pitch detector” and “matlab”, since I guess there must be matlab routines around which can be understood and translated into an fmod dsp callback function easily.
- bamboe answered 12 years ago
im not that experience with pitch detection either but i think in theory for most instruments for a single note the peak freqency is always the same and the differing harmonics are what makes each instrument sound different
edit: just found this which might help http://cnx.rice.edu/content/m11714/latest/
using spectrum analysis you can take the band with the highest amplitude which should give you an approximate frequency. the next version of fmod should provide the ability to get a more accurate spectrum. you could also make your own dsp to do this more accurately
Please login first to submit.