# FMOD Ex to FMOD Studio pitch values

**URL:** <https://qa.fmod.com/t/fmod-ex-to-fmod-studio-pitch-values/18220>\
**Category:** FMOD Engine\
**Created:** [January 15, 2022, 5:46pm UTC](https://qa.fmod.com/t/fmod-ex-to-fmod-studio-pitch-values/18220 "2022-01-15T17:46:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cosmy](https://avatars.discourse-cdn.com/v4/letter/c/f9ae1b/32.png) [@cosmy](https://qa.fmod.com/u/cosmy)\
**Post date:** [January 15, 2022, 5:46pm UTC](https://qa.fmod.com/t/fmod-ex-to-fmod-studio-pitch-values/18220/1 "2022-01-15T17:46:09Z")

</div>

Hello,

I’m trying to migrate a project using FMOD Ex to FMOD Studio but I have some problems with the Event::setPitch() method. What is the equivalent FMOD\_EVENT\_PITCHUNITS setting in FMOD Studio?

How can I convert the parameter using FMOD\_EVENT\_PITCHUNITS\_OCTAVES to FMOD Studio?

EventInstance::setPitch() takes only 1 parameter (linear pitch).

Thank you

---

<div class="post-metadata">

**Author:** ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)\
**Post date:** [January 18, 2022, 3:16pm UTC](https://qa.fmod.com/t/fmod-ex-to-fmod-studio-pitch-values/18220/2 "2022-01-18T15:16:56Z")

</div>

The `setPitch()` linear pitch value is based on `1.0` being the base. `100.0` is 100x the pitch.

You can use something like [http://www.sengpielaudio.com/calculator-centsratio.htm](http://www.sengpielaudio.com/calculator-centsratio.htm) to get semitones or other such values.

`0.5` would be down one octave, `2.0` would be up one octave, `4.0` would be up two octaves, etc

Linear is calculated as 2 to the power of semitones difference / 12 … ie -12 semitones = 2 ^ -1 = 0.5

2 ^ (24/12) = 4x multiplier
