Time Pitch stretch plugin doesn't even work correctly

Author
FunkLoop
Max Output Level: -88 dBFS
  • Total Posts : 106
  • Joined: 2013/01/27 14:42:19
  • Status: offline
2013/02/09 17:06:01 (permalink)

Time Pitch stretch plugin doesn't even work correctly

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
post edited by FunkLoop - 2013/02/09 17:57:20
#1

8 Replies Related Threads

    Kev999
    Max Output Level: -36 dBFS
    • Total Posts : 3922
    • Joined: 2007/05/01 14:22:54
    • Location: Victoria, Australia
    • Status: offline
    Re:Time Pitch stretch plugin doesn't even work correctly 2013/02/09 17:56:34 (permalink)
    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.


    SonarPlatinum(22.11.0.111)|Mixbus32C(4.3.19)|DigitalPerformer(9.5.1)|Reaper(5.77)
    FractalDesign:DefineR5|i7-6850k@4.1GHz|16GB@2666MHz-DDR4|MSI:GamingProCarbonX99a|Matrox:M9148(x2)|UAD2solo(6.5.2)|W7Ult-x64-SP1
    Audient:iD22+ASP800|KRK:VXT6|+various-outboard-gear|+guitars&basses, etc.
    Having fun at work lately
    #2
    FunkLoop
    Max Output Level: -88 dBFS
    • Total Posts : 106
    • Joined: 2013/01/27 14:42:19
    • Status: offline
    Re:Time Pitch stretch plugin doesn't even work correctly 2013/02/09 18:02:46 (permalink)
    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
    post edited by FunkLoop - 2013/02/09 18:12:04
    #3
    chuckebaby
    Max Output Level: 0 dBFS
    • Total Posts : 13146
    • Joined: 2011/01/04 14:55:28
    • Status: offline
    Re:Time Pitch stretch plugin doesn't even work correctly 2013/02/09 18:05:01 (permalink)
    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

    Windows 8.1 X64 Sonar Platinum x64
    Custom built: Asrock z97 1150 - Intel I7 4790k - 16GB corsair DDR3 1600 - PNY SSD 220GB
    Focusrite Saffire 18I8 - Mackie Control
       
    #4
    Kev999
    Max Output Level: -36 dBFS
    • Total Posts : 3922
    • Joined: 2007/05/01 14:22:54
    • Location: Victoria, Australia
    • Status: offline
    Re:Time Pitch stretch plugin doesn't even work correctly 2013/02/09 19:49:43 (permalink)
    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.

    SonarPlatinum(22.11.0.111)|Mixbus32C(4.3.19)|DigitalPerformer(9.5.1)|Reaper(5.77)
    FractalDesign:DefineR5|i7-6850k@4.1GHz|16GB@2666MHz-DDR4|MSI:GamingProCarbonX99a|Matrox:M9148(x2)|UAD2solo(6.5.2)|W7Ult-x64-SP1
    Audient:iD22+ASP800|KRK:VXT6|+various-outboard-gear|+guitars&basses, etc.
    Having fun at work lately
    #5
    FunkLoop
    Max Output Level: -88 dBFS
    • Total Posts : 106
    • Joined: 2013/01/27 14:42:19
    • Status: offline
    Re:Time Pitch stretch plugin doesn't even work correctly 2013/02/09 20:48:10 (permalink)
    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
    post edited by FunkLoop - 2013/02/09 20:53:25
    #6
    FunkLoop
    Max Output Level: -88 dBFS
    • Total Posts : 106
    • Joined: 2013/01/27 14:42:19
    • Status: offline
    Re:Time Pitch stretch plugin doesn't even work correctly 2013/02/09 20:54:20 (permalink)
    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?
    post edited by FunkLoop - 2013/02/09 22:26:04
    #7
    FunkLoop
    Max Output Level: -88 dBFS
    • Total Posts : 106
    • Joined: 2013/01/27 14:42:19
    • Status: offline
    Re:Time Pitch stretch plugin doesn't even work correctly 2013/02/10 06:39:05 (permalink)
    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; }
    post edited by FunkLoop - 2013/02/11 07:24:12
    #8
    chuckebaby
    Max Output Level: 0 dBFS
    • Total Posts : 13146
    • Joined: 2011/01/04 14:55:28
    • Status: offline
    Re:Time Pitch stretch plugin doesn't even work correctly 2013/02/10 08:43:11 (permalink)
    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

    Windows 8.1 X64 Sonar Platinum x64
    Custom built: Asrock z97 1150 - Intel I7 4790k - 16GB corsair DDR3 1600 - PNY SSD 220GB
    Focusrite Saffire 18I8 - Mackie Control
       
    #9
    Jump to:
    © 2025 APG vNext Commercial Version 5.1