• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[General] Sound: Pitch Formula

Status
Not open for further replies.
I'm to know curious if anyone knows a formula to find the length of a sound with a modified pitch.

For example:

Sound 1
Duration: 1:30
Pitch: 0.70

When the pitch is edited the duration of the sound changes, however it does not show the new duration. I am here to ask for just some way of finding the new length of a sound after it's pitch has been modified.
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
Higher pitch means faster. Lower pitchs means slower.

If pitch > 1 then divide.

Duration 1:30 = 90 seconds
Pitch 1.5
90 / 1.5 = 60 = 1:00

If pitch < 1 then multiply by pitch + 1

Duration 1:30 = 90 seconds
Pitch 0.5 (0.5 + 1 = 1.5)
= 90 * 1.5 = 135 = 2:15
 
Status
Not open for further replies.
Top