Get Current pitch

Sep 20, 2012 at 2:56 AM
Edited Sep 20, 2012 at 2:58 AM
Hi All
public float GetPitch()
{
   return _virtualPitch;
}
By adding the above function can i get the current pitch of the file?
Regards,
Saneesh
Nov 24, 2014 at 4:09 AM
Most wave signals such as voice, musical instrument sound are made up with waves in different amplitudes and frequencies.

To get the fundamental frequency (pitch) of a wave signal, The Fast Fourier Transformation can help you.

Frequency Spectrum

FFT

Image

The brightest, yellow line represents the "pitch" 1.0kHz of the signal.