Snap to grid fails on stretched audio

Author
Kylotan
Max Output Level: -71 dBFS
  • Total Posts : 995
  • Joined: 2007/09/10 17:27:35
  • Location: Nottingham, UK
  • Status: offline
2014/08/17 19:59:08 (permalink)

Snap to grid fails on stretched audio

I take a 4-bar piece of audio that has been stretched to 86%, ensure Snap is set to 'To' and to 'Whole Note', drag-copy the audio to the right, and it aligns it to about 60% of the way through the 4th bar. Nothing I can do with Snap enabled will get it to line up with a measure. If I switch from whole notes down to something smaller, I can reduce the amount of error - eg. snap to 1/16 means I can get it to about 60% of the way through the 4th beat of a bar.
 
Here's the really weird thing: even manually editing the clip's Start time in the properties doesn't work. If I edit it to 8:01:000, it moves it to the wrong place and the resulting value is 7:04:082.  Nothing works.
 
But if I stretch the audio back to 100%, and then try moving it around with Snap to Grid on... it goes exactly where I'd expect.
 
Known bug? Is there a workaround? I need to be able to stretch audio and move it around for an entire song, so if this is totally broken I'll have to ditch Sonar for this track.
 
Using Sonar X3e build 352, 64bit.

Sonar Platinum (Newburyport) / Win 8.1 64bit / Focusrite Scarlett 6i6 / Absynth / Kontakt / Play / Superior Drummer 2 / ESP LTD guitar / etc
 
Twilight's Embrace - gothic/death metal | Other works - instrumental/soundtracks
#1

17 Replies Related Threads

    Anderton
    Max Output Level: 0 dBFS
    • Total Posts : 14070
    • Joined: 2003/11/06 14:02:03
    • Status: offline
    Re: Snap to grid fails on stretched audio 2014/08/17 21:29:57 (permalink)
    I can't reproduce what I think the issue is so I need to find out more info. Is this the situation...
     
    1. You have a clip. Let's say it starts at measure 5.
    2. You stretch it to 87% of its length.
    3. Now you want a copy of the clip to start at, say, measure 17.
    4. You drag-copy the clip, but can't get the clip beginning to start at measure 17.
     
    Yes? I can do that here, so I figure this isn't what you're trying to do.
     
    I assume if you bounce it to clip, it will then do what you want (which you should do anyway because the real-time stretch uses a preview algorithm...doing an offline render improves the audio a zillion per cent). Is this the case?
     
    What you're describing is not expected behavior so I'm sure there's some issue that can be solved.

    The first 3 books in "The Musician's Guide to Home Recording" series are available from Hal Leonard and http://www.reverb.com. Listen to my music on http://www.YouTube.com/thecraiganderton, and visit http://www.craiganderton.com. Thanks!
    #2
    Kylotan
    Max Output Level: -71 dBFS
    • Total Posts : 995
    • Joined: 2007/09/10 17:27:35
    • Location: Nottingham, UK
    • Status: offline
    Re: Snap to grid fails on stretched audio 2014/08/18 08:27:05 (permalink)
    The situation is exactly as you described it, but I think I have found the culprit.
     
    When I perform the stretch operation, a tiny little flag marker appears some way in from the left; and it is this which gets snapped to the grid.
     
    This appears to be a 'snap offset' in the properties - if I change that to zero, everything works from that point onwards.
     
    No idea why the offset appears with a seemingly arbitrary number - that appears to be a bug.
     
    So, hopefully I can proceed with my project now (apart from all the other bugs that are appearing by migrating from 8.5 to X3, mostly with take lanes getting very confused over how they are supposed to handle what used to be layers).
     

    Sonar Platinum (Newburyport) / Win 8.1 64bit / Focusrite Scarlett 6i6 / Absynth / Kontakt / Play / Superior Drummer 2 / ESP LTD guitar / etc
     
    Twilight's Embrace - gothic/death metal | Other works - instrumental/soundtracks
    #3
    Kylotan
    Max Output Level: -71 dBFS
    • Total Posts : 995
    • Joined: 2007/09/10 17:27:35
    • Location: Nottingham, UK
    • Status: offline
    Re: Snap to grid fails on stretched audio 2014/08/18 08:29:30 (permalink)
    (PS. That post came after 2 hours of 'Unexpected Error' messages. Cakewalk really need to get this forum fixed!)

    Sonar Platinum (Newburyport) / Win 8.1 64bit / Focusrite Scarlett 6i6 / Absynth / Kontakt / Play / Superior Drummer 2 / ESP LTD guitar / etc
     
    Twilight's Embrace - gothic/death metal | Other works - instrumental/soundtracks
    #4
    Anderton
    Max Output Level: 0 dBFS
    • Total Posts : 14070
    • Joined: 2003/11/06 14:02:03
    • Status: offline
    Re: Snap to grid fails on stretched audio 2014/08/18 10:35:20 (permalink)
    Kylotan
    No idea why the offset appears with a seemingly arbitrary number - that appears to be a bug.



    Probably some kind of 8.5/X3 translation, but there's also a keyboard shortcut for that function - don't recall what it is offhand. Maybe it gets triggered accidentally?
     
    I always try to finish projects using the program with which they were started, but if that's not possible, then I cheat and export the raw audio and import that into the new version.

    The first 3 books in "The Musician's Guide to Home Recording" series are available from Hal Leonard and http://www.reverb.com. Listen to my music on http://www.YouTube.com/thecraiganderton, and visit http://www.craiganderton.com. Thanks!
    #5
    Kylotan
    Max Output Level: -71 dBFS
    • Total Posts : 995
    • Joined: 2007/09/10 17:27:35
    • Location: Nottingham, UK
    • Status: offline
    Re: Snap to grid fails on stretched audio 2014/08/18 10:48:37 (permalink)
    It's not a keyboard shortcut, as all I do is Ctrl-drag the edge of the clip and it breaks it. (Also, that ctrl-drag is a real headache - usually about 5 seconds of Hunt The Pixel is required before I can get it to show the right icon.)
     
    Most of my projects are never finished, as I use Sonar to record and collect ideas. And exporting raw audio would just be a nightmare as I am trying to work with individual clips.

    Sonar Platinum (Newburyport) / Win 8.1 64bit / Focusrite Scarlett 6i6 / Absynth / Kontakt / Play / Superior Drummer 2 / ESP LTD guitar / etc
     
    Twilight's Embrace - gothic/death metal | Other works - instrumental/soundtracks
    #6
    Anderton
    Max Output Level: 0 dBFS
    • Total Posts : 14070
    • Joined: 2003/11/06 14:02:03
    • Status: offline
    Re: Snap to grid fails on stretched audio 2014/08/18 11:07:11 (permalink)
    Kylotan
    And exporting raw audio would just be a nightmare as I am trying to work with individual clips.



    This is why the time-stamped Broadcast Wave format can be so helpful. Then all the clips show up where they're supposed to. 
     
    Try this: In 8.5, export all the clips as individual Broadcast Wave files with names that indicate clearly the tracks to which they belong. I think you can also just "save as" the project and save each clip as an individual file. In X3, open the 8.5 project, then delete all the audio so you have the same "structure" you had before. Then, drag the clips into their respective tracks and they should line up where they were in 8.5.
     
    This is from memory, but I'll check into it later as it would make a good general-purpose tip anyway for any kind of transfer, even from one DAW to another.
     
    There's usually an easy way to do things with Sonar...the hard part is finding it 

    The first 3 books in "The Musician's Guide to Home Recording" series are available from Hal Leonard and http://www.reverb.com. Listen to my music on http://www.YouTube.com/thecraiganderton, and visit http://www.craiganderton.com. Thanks!
    #7
    Kylotan
    Max Output Level: -71 dBFS
    • Total Posts : 995
    • Joined: 2007/09/10 17:27:35
    • Location: Nottingham, UK
    • Status: offline
    Re: Snap to grid fails on stretched audio 2014/08/18 11:15:07 (permalink)
    Seriously, this would take hours. I have several hundred audio clips in any given project, plus MIDI clips, markers, and other events. Cakewalk just need to be getting their backwards compatibility working properly if they don't want to supply fixes for old versions. This isn't something I should have to work around.

    Sonar Platinum (Newburyport) / Win 8.1 64bit / Focusrite Scarlett 6i6 / Absynth / Kontakt / Play / Superior Drummer 2 / ESP LTD guitar / etc
     
    Twilight's Embrace - gothic/death metal | Other works - instrumental/soundtracks
    #8
    Anderton
    Max Output Level: 0 dBFS
    • Total Posts : 14070
    • Joined: 2003/11/06 14:02:03
    • Status: offline
    Re: Snap to grid fails on stretched audio 2014/08/18 11:57:05 (permalink)
    Kylotan
    Seriously, this would take hours. I have several hundred audio clips in any given project, plus MIDI clips, markers, and other events. Cakewalk just need to be getting their backwards compatibility working properly if they don't want to supply fixes for old versions. This isn't something I should have to work around.



    I'm going to give it a try anyway. I have several really complex projects I can test...I'll see how long it takes to export from Sonar and import to Cubase. I think there are enough shortcut options, like batch saving or maybe even drag and drop directly from one project to another, that it would take a lot less than several hours. I also have some 8.5 projects but haven't experienced the issues you have, so that's probably not a good test...getting files into a different DAW altogether would be interesting.
     
    Remember, the key is opening the old project and just deleting/importing the audio. If the markers and other accoutrements exist, and you don't delete the MIDI files or instruments, then it would be a pretty speedy process.
     
    Agreed total backwards compatibility would be great, but there are several key functionality differences. The X-series is essentially a new DAW.

    The first 3 books in "The Musician's Guide to Home Recording" series are available from Hal Leonard and http://www.reverb.com. Listen to my music on http://www.YouTube.com/thecraiganderton, and visit http://www.craiganderton.com. Thanks!
    #9
    Kylotan
    Max Output Level: -71 dBFS
    • Total Posts : 995
    • Joined: 2007/09/10 17:27:35
    • Location: Nottingham, UK
    • Status: offline
    Re: Snap to grid fails on stretched audio 2014/08/18 12:07:28 (permalink)
    Ok, I have a test case for you that shows it's not a compatibility issue, just a bug.
     
    1) Create new project with Normal template.
    2) Add an audio track.
    3) Record 4 bars of audio, or just over that amount.
    4) Slip-edit the start and finish so that only 2 bars remain.
    5) Ctrl-drag the end so that the clip now takes up 1 bar, showing '50%' at the top.
    6) Note that the clip now has a snap offset - in this test, it appears to be almost exactly half-way through the clip for me.

    Sonar Platinum (Newburyport) / Win 8.1 64bit / Focusrite Scarlett 6i6 / Absynth / Kontakt / Play / Superior Drummer 2 / ESP LTD guitar / etc
     
    Twilight's Embrace - gothic/death metal | Other works - instrumental/soundtracks
    #10
    Anderton
    Max Output Level: 0 dBFS
    • Total Posts : 14070
    • Joined: 2003/11/06 14:02:03
    • Status: offline
    Re: Snap to grid fails on stretched audio 2014/08/18 13:18:37 (permalink)
    Kylotan
    Ok, I have a test case for you that shows it's not a compatibility issue, just a bug.
     
    1) Create new project with Normal template.
    2) Add an audio track.
    3) Record 4 bars of audio, or just over that amount.
    4) Slip-edit the start and finish so that only 2 bars remain.
    5) Ctrl-drag the end so that the clip now takes up 1 bar, showing '50%' at the top.
    6) Note that the clip now has a snap offset - in this test, it appears to be almost exactly half-way through the clip for me.



    Wow, thank you! Being reproducible is the holy grail of bug fixes. I would have never found that. 
     
    After some preliminary tests, it seems to happen only if you slip-edit the beginning and therefore move the clip off the Now time before stretching, which is another clue given that Snap Offset normally is related to the Now time. I'll pass the info along to the bakers.
     
     
     

    The first 3 books in "The Musician's Guide to Home Recording" series are available from Hal Leonard and http://www.reverb.com. Listen to my music on http://www.YouTube.com/thecraiganderton, and visit http://www.craiganderton.com. Thanks!
    #11
    pwalpwal
    Max Output Level: -43 dBFS
    • Total Posts : 3249
    • Joined: 2015/01/17 03:52:50
    • Status: offline
    Re: Snap to grid fails on stretched audio 2016/07/13 08:46:24 (permalink)
    that's weird, i just stepped through those steps, and i get a snap offset of 44100!!
    http://imgur.com/CqtgPcn

    post edited by pwalpwal - 2016/07/13 10:22:25

    just a sec

    #12
    brundlefly
    Max Output Level: 0 dBFS
    • Total Posts : 14250
    • Joined: 2007/09/14 14:57:59
    • Location: Manitou Spgs, Colorado
    • Status: offline
    Re: Snap to grid fails on stretched audio 2016/07/13 12:10:43 (permalink)
    Workaround: 'Apply Trimming' to slip-edited clips before stretching them.

    SONAR Platinum x64, 2x MOTU 2408/PCIe-424  (24-bit, 48kHz)
    Win10, I7-6700K @ 4.0GHz, 24GB DDR4, 2TB HDD, 32GB SSD Cache, GeForce GTX 750Ti, 2x 24" 16:10 IPS Monitors
    #13
    Kylotan
    Max Output Level: -71 dBFS
    • Total Posts : 995
    • Joined: 2007/09/10 17:27:35
    • Location: Nottingham, UK
    • Status: offline
    Re: Snap to grid fails on stretched audio 2016/07/13 13:18:15 (permalink)
    I'm not sure it qualifies as a workaround given that it's destructive to the original clip. But it might be enough for some.

    Sonar Platinum (Newburyport) / Win 8.1 64bit / Focusrite Scarlett 6i6 / Absynth / Kontakt / Play / Superior Drummer 2 / ESP LTD guitar / etc
     
    Twilight's Embrace - gothic/death metal | Other works - instrumental/soundtracks
    #14
    Beepster
    Max Output Level: 0 dBFS
    • Total Posts : 18001
    • Joined: 2012/05/11 19:11:24
    • Status: offline
    Re: Snap to grid fails on stretched audio 2016/07/13 13:45:53 (permalink)
    Kylotan
    The situation is exactly as you described it, but I think I have found the culprit.
     
    When I perform the stretch operation, a tiny little flag marker appears some way in from the left; and it is this which gets snapped to the grid.
     
    This appears to be a 'snap offset' in the properties - if I change that to zero, everything works from that point onwards.
     
    No idea why the offset appears with a seemingly arbitrary number - that appears to be a bug.
     
    So, hopefully I can proceed with my project now (apart from all the other bugs that are appearing by migrating from 8.5 to X3, mostly with take lanes getting very confused over how they are supposed to handle what used to be layers).
     




    AHA!!!! I'm going to have to give that a try because I had to completely abandon Sonar for the MASSIVE time stretching adventure I've been on (which is thankfully/hopefully coming to an end today).
     
    So yes... I noticed Ctrl stretching was not obeying Snap and yes I saw the grey Offset flags (but didn't know what they were). If changing a setting fixes it that would be AWESOME.
     
    However it still doesn't help me with the type of bulk work I've been doing (multi track sessions) because even if the clip stretching obeys Snap it does not obey "Clip Groups" (as in grouped clips of a multi track session will not stretch simultaneously and instead need to be stretched one at a time).
     
    So the combination of having to manually and visually line up my transients to the desired measure/beat marker without Snap and then having to REPEAT that process for EVERY clip (which requires VERY high Zoom resolution to avoid "phasing" across the tracks/clips) was of course VERY cumbersome.
     
    If Snap worked then it becomes WAY easier but still a pain because each clip would still need to be Snap Stretched one at a time.
     
    If there is a solution to that Grouped clip stretching problem I would LOVE to hear it (and I posted a thread about it some months back once I discovered this).
     
    In the meantime I've taught myself how to make this all happen in Reaper (which was a massive undertaking itself). Multi track stretching works SOOOOOOO much better/faster in Reaper but of course once it's done I scramble back with the files to Sonar because to me it's just a better creative tool for me.
     
    If they fixed these time stretching issues I would be ECSTATIC but they seem to be focusing on other stuff so I can only hope some love will be given to clip stretching in the future.
     
    The other problem is that even using brute force to make this type of stretching happen with Sonar (I did a couple songs before giving up) it causes some crazy instability and eventually project corruption. The method I figured out works flawlessly for a while (although time consuming) but as the project plods on things get quirkier and quirkier until it's impossible to continue.
     
    Not a rant or whinge. Mostly just posting this so people don't have to suffer through the growing pains I did and to maybe get the attention of the Baker's/community so this gets sorted at some point.
     
    Personally I'm finding shuffling back and forth between Reaper and Sonar quite useful and interesting. The two programs compliment each other quite well IMO.
     
    Cheers.
    #15
    Beepster
    Max Output Level: 0 dBFS
    • Total Posts : 18001
    • Joined: 2012/05/11 19:11:24
    • Status: offline
    Re: Snap to grid fails on stretched audio 2016/07/13 14:06:21 (permalink)
    Oh and just to point out that nothing is ever perfect... Reaper does not seem to obey Snap when Slip Stretching clips either so I still have to zoom way in and line things up visually and/or by ear.
     
    It obeys Clip (or I guess they call the "Items") Grouping though so that actually speeds things up quite a bit and things don't corrupt (touch wood).
    #16
    brundlefly
    Max Output Level: 0 dBFS
    • Total Posts : 14250
    • Joined: 2007/09/14 14:57:59
    • Location: Manitou Spgs, Colorado
    • Status: offline
    Re: Snap to grid fails on stretched audio 2016/07/13 14:14:49 (permalink)
    Kylotan
    I'm not sure it qualifies as a workaround given that it's destructive to the original clip. But it might be enough for some.



    All workarounds involve compromises; take it or leave it. If you just want to "git 'er done" and move on, this is an option.
     
    You can copy the original clip to a muted lane if you're concerned about reversibility; I would recommend that in any case when making multiple splits, moves and stretches. At some point all those individual edits are going to become effectively irreversible anyway.

    SONAR Platinum x64, 2x MOTU 2408/PCIe-424  (24-bit, 48kHz)
    Win10, I7-6700K @ 4.0GHz, 24GB DDR4, 2TB HDD, 32GB SSD Cache, GeForce GTX 750Ti, 2x 24" 16:10 IPS Monitors
    #17
    Kylotan
    Max Output Level: -71 dBFS
    • Total Posts : 995
    • Joined: 2007/09/10 17:27:35
    • Location: Nottingham, UK
    • Status: offline
    Re: Snap to grid fails on stretched audio 2016/07/13 15:37:09 (permalink)
    brundlefly
    At some point all those individual edits are going to become effectively irreversible anyway.



    Only if Sonar is so broken as to make it so. Still, not my problem, going forward.

    Sonar Platinum (Newburyport) / Win 8.1 64bit / Focusrite Scarlett 6i6 / Absynth / Kontakt / Play / Superior Drummer 2 / ESP LTD guitar / etc
     
    Twilight's Embrace - gothic/death metal | Other works - instrumental/soundtracks
    #18
    Jump to:
    © 2024 APG vNext Commercial Version 5.1