• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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