• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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