In Unity3D, pitch changes are typically measured using the AudioSource component’s pitch property. A pitch value of 1.0 represents the original sound, while values above or below this alter the pitch. In musical terms, a pitch change of approximately 0.05946 represents a single semitone. Therefore, changing the pitch by a factor of 2.0 doubles the frequency, equating to an octave.
Calculating Note Changes
To determine how much pitch change corresponds to a specific note change, use this formula:
For example, to raise the pitch by one note, multiply the current pitch by , which equals approximately 1.05946. Similarly, lowering by one note involves multiplying by , approximately 0.94387.
Conclusion
In Unity3D, each semitone corresponds to a pitch factor of roughly 1.05946. Understanding this helps in accurately adjusting audio for musical applications.