/// <summary> /// Gets the frequency of the sound expressed in semitones. /// </summary> /// <returns>The semitones.</returns> public float getFrequency() { voice.GetFrequencyRatio(out float freq); return(XAudio2.FrequencyRatioToSemitones(freq)); }