• SONAR
  • Time Pitch stretch plugin doesn't even work correctly
2013/02/09 17:06:01
FunkLoop
The Time / Pitch Stretch 2 plug-in (Audio FX) does not work correctly.

given a wave file of length 11.162 seconds:
pitched down by 2 semi-tones gives
- In Goldwave a file of length 12.528 seconds
- In Sonar 7 (while holding the shift key in the plugin) a file of length 12.951 seconds

The math behind it:
2 semi-tones down is a playback speed of 89.0899% (= 2 ^(-2/12)), so this is a length of 1.122 (= 1 / 2 ^(-2/12)). Applied to our file

11.162 * 1.122 = 12.528 seconds

so Goldwave is right and Sonar is wrong
2013/02/09 17:56:34
Kev999
In Cakewalk Time/Pitch Stretch 2, length and pitch are adjusted separately and independently.  Unfortunately you need to do your own calculations if you require a proportional shift.

2013/02/09 18:02:46
FunkLoop
LOL, even in the case I fill the tool with my own correct calculated parameters it does not even work correctly. When I feed it with -2.0 semitones and a time % of 112.2462% I get a length of 12.389 seconds instead of 12.528 seconds. Useless plug-in
2013/02/09 18:05:01
chuckebaby
its not one of sonar's strong points and hopefully we see improvements on this in the future.

i don't have a problem doing time stretching because i use groove clips.
its much easier to stretch and shift.
but i agree with ease of use could use a few new features
2013/02/09 19:49:43
Kev999
Admittedly it's not very sophisticated, but it has usually worked ok for my purposes.  However I have only ever used it for adjusting either length or pitch, not both together.
2013/02/09 20:48:10
FunkLoop
it gets more funny

feeding it with a 500 ms wave sample consisting of 500 Hz sinuses and pitching it down makes the wave shorter, I got a 492 ms clip, it should be longer of course Feeding it with a single 500 Hz sinus completely removes it, nothing is left, this is just hilarious

delaydots.com Pitchworks does a better job however you still scratch your head when it completely demolishes a single 500 Hz sinus.

Where is Pro Tools
You know, when making music the musical output is just 50% part of the fun, the other part is the creating process, however if you encounter all these silly things that creating process is not so fun any more
2013/02/09 20:54:20
FunkLoop
I can tell you, they didn't invent drum n bass by speeding it up while keeping the pitch the same

btw: Does Sonar X2 has this as an Audio FX plug in? If yes, can we use that dll file for Sonar 7?
2013/02/10 06:39:05
FunkLoop
damn, I almost did it myself, only need some one to wrap it into a DX-plugin. Here is the algorithm, works for speed parameters in the interval (0.0, 1.0] . what happens is in fact resampling, if you play back the resampled file at the original speed you have what you want

public static double[] ReSampleAlgorithmSub1(double width, double[] Samples) { int newLength = (int)Math.floor(Samples.length / width); double OutputSamples[] = new double[newLength]; double time = 0; for (int i = 0; i < OutputSamples.length; i++) { int selectSample = (int)Math.floor(time); int selectNextSample = (int)Math.floor(time + width); if (selectSample == selectNextSample || selectNextSample == Samples.length ){ OutputSamples = Samples[selectSample]; } else { double weightFirstSample = selectNextSample - time; double weightNextSample = (time + width) - selectNextSample; OutputSamples = (weightFirstSample * Samples[selectSample] + weightNextSample * Samples[selectNextSample]) / width; } time = time + width; } return OutputSamples; }
2013/02/10 08:43:11
chuckebaby
FunkLoop


it gets more funny

feeding it with a 500 ms wave sample consisting of 500 Hz sinuses and pitching it down makes the wave shorter, I got a 492 ms clip, it should be longer of course Feeding it with a single 500 Hz sinus completely removes it, nothing is left, this is just hilarious

delaydots.com Pitchworks does a better job however you still scratch your head when it completely demolishes a single 500 Hz sinus.

Where is Pro Tools
You know, when making music the musical output is just 50% part of the fun, the other part is the creating process, however if you encounter all these silly things that creating process is not so fun any more

Avid,a simple google search will return these results.
 
Best wishes,
 
Charlie
© 2026 APG vNext Commercial Version 5.1

Use My Existing Forum Account

Use My Social Media Account