Hi. I’m trying to come up with a way of increasing a sound’s “pitch” (or speed, since its tempo and pitch increase) based on a percent,
which should match the percent of it’s duration as well.
Keep in mind, the duration of each clip is a whole number (no decimal), and they are in .ogg format, if that matters somehow.
For instance, let’s say I want a clip to be 60% faster in duration (exactly 4s). My current method is to take 100 (normal pitch), and add it to 100 * 0.6, thus being 60% faster.
Its duration should then last for 1.4 seconds. But it seems to be ending at 2.5 seconds!
This works for lower percentages, but will gradually start becoming more and more incorrect with accordance to what it’s final duration should be. Any help would be appreciated.