Sound playback and MIDI notes don't match... latency??? Or what?

Author
vaultwit
Max Output Level: -80 dBFS
  • Total Posts : 543
  • Joined: 2011/08/02 20:53:49
  • Status: offline
2011/09/05 17:11:21 (permalink)

Sound playback and MIDI notes don't match... latency??? Or what?

I've noticed that when I freeze an instrument track, the wave forms and the MIDI note's don't match. The wave is usually lagging behind the midi note.

For example, I'm currently making a drum snare hit. For some reason, the timing of the sound from the synth was off, so I froze the track to see that the initial each snare hit does not begin at the moment the MIDI note begins... it is off.

Is this due to some latency problem? How do I fix this?? It is really messing up the timing of my tracks. Here is a pic of two IDENTICAL tracks, with one of the frozen and the other unfrozen. As you can see, the frozen track) is a bit delayed:



Closer view:
post edited by vaultwit - 2011/09/05 17:22:06

Sonar X1 Producer Expanded 64-bit
Computer: Intel Core i7-3770 3.4Ghz, 8GB RAM, Windows 8 
Interface: Focusrite Scarlett 2i2
#1

16 Replies Related Threads

    vaultwit
    Max Output Level: -80 dBFS
    • Total Posts : 543
    • Joined: 2011/08/02 20:53:49
    • Status: offline
    Re:Sound playback and MIDI notes don't match... latency??? Or what? 2011/09/05 17:21:24 (permalink)
    Sorry, accidently post.
    post edited by vaultwit - 2011/09/05 17:22:28

    Sonar X1 Producer Expanded 64-bit
    Computer: Intel Core i7-3770 3.4Ghz, 8GB RAM, Windows 8 
    Interface: Focusrite Scarlett 2i2
    #2
    John
    Forum Host
    • Total Posts : 30467
    • Joined: 2003/11/06 11:53:17
    • Status: offline
    Re:Sound playback and MIDI notes don't match... latency??? Or what? 2011/09/05 17:30:39 (permalink)
    I have seen this before in the forum some time ago but can't recall what caused it. Do you have any plugins in the audio track?

    Best
    John
    #3
    vaultwit
    Max Output Level: -80 dBFS
    • Total Posts : 543
    • Joined: 2011/08/02 20:53:49
    • Status: offline
    Re:Sound playback and MIDI notes don't match... latency??? Or what? 2011/09/05 18:06:50 (permalink)
    John


    I have seen this before in the forum some time ago but can't recall what caused it. Do you have any plugins in the audio track?

    Yes each of my tracks (including this one) have plug in effects. Typically, I'll have the percussion strip and reverb.

    Sonar X1 Producer Expanded 64-bit
    Computer: Intel Core i7-3770 3.4Ghz, 8GB RAM, Windows 8 
    Interface: Focusrite Scarlett 2i2
    #4
    John
    Forum Host
    • Total Posts : 30467
    • Joined: 2003/11/06 11:53:17
    • Status: offline
    Re:Sound playback and MIDI notes don't match... latency??? Or what? 2011/09/05 18:14:05 (permalink)
    That could be your problem. Do the same test without the plugins and see if it is delayed.

    Best
    John
    #5
    vaultwit
    Max Output Level: -80 dBFS
    • Total Posts : 543
    • Joined: 2011/08/02 20:53:49
    • Status: offline
    Re:Sound playback and MIDI notes don't match... latency??? Or what? 2011/09/05 18:25:59 (permalink)
    John


    That could be your problem. Do the same test without the plugins and see if it is delayed.

    Yes it is delayed even without plugins. It is delayed from the very beginnig, there has never been a time when I did not experience the delay (i.e. never a time when everything was aligned).


    But even if it WAS because of the plugins, that doesn't mean I should have to stop using plugins altogether right? That would be bad

    Sonar X1 Producer Expanded 64-bit
    Computer: Intel Core i7-3770 3.4Ghz, 8GB RAM, Windows 8 
    Interface: Focusrite Scarlett 2i2
    #6
    John
    Forum Host
    • Total Posts : 30467
    • Joined: 2003/11/06 11:53:17
    • Status: offline
    Re:Sound playback and MIDI notes don't match... latency??? Or what? 2011/09/05 19:41:02 (permalink)
    Do you have ADC off? Automatic Delay Compensation.

    From the manual

    Look-ahead processing at high latencies
    Some plug-ins, such as the Sonitus:fx Multiband and other dynamics processors, use a look-ahead
    buffer mechanism, which results in a short delay being introduced to the output signal when the
    plug-in is used in real-time. SONAR’s automatic delay compensation (ADC) takes care of any
    delays, but you may experience some anomalies when using such a plug-in to process the output of
    a DXi-especially if SONAR is configured to use a high mixing latency. The symptoms include audio
    that appears to drop out, and/or missed notes (from the MIDI track that is assigned to the DXi).
    Again, this is more prone to occur with higher latency settings.
    This may happen if SONAR doesn't pump ahead enough MIDI data to compensate for ADC. To fix
    this problem, go to Edit > Preferences > MIDI - Playback and Recording and increase the
    Prepare Using [n] Millisecond Buffers value.
    post edited by John - 2011/09/05 19:50:25

    Best
    John
    #7
    vaultwit
    Max Output Level: -80 dBFS
    • Total Posts : 543
    • Joined: 2011/08/02 20:53:49
    • Status: offline
    Re:Sound playback and MIDI notes don't match... latency??? Or what? 2011/09/05 23:16:43 (permalink)
    John


    Do you have ADC off? Automatic Delay Compensation.

    From the manual

    Look-ahead processing at high latencies
    Some plug-ins, such as the Sonitus:fx Multiband and other dynamics processors, use a look-ahead
    buffer mechanism, which results in a short delay being introduced to the output signal when the
    plug-in is used in real-time. SONAR’s automatic delay compensation (ADC) takes care of any
    delays, but you may experience some anomalies when using such a plug-in to process the output of
    a DXi-especially if SONAR is configured to use a high mixing latency. The symptoms include audio
    that appears to drop out, and/or missed notes (from the MIDI track that is assigned to the DXi).
    Again, this is more prone to occur with higher latency settings.
    This may happen if SONAR doesn't pump ahead enough MIDI data to compensate for ADC. To fix
    this problem, go to Edit > Preferences > MIDI - Playback and Recording and increase the
    Prepare Using [n] Millisecond Buffers value.

    Thanks for your help, I appreciate your effort. Unfortunately like I said, the delay occurs even when I don't use plugin effects. For example, if I have a melodic line from Z3TA and a drum line from Session Drummer 3, even though the MIDI notes are aligned, the playback from the the two are off.


    I did check to make sure that the delay compensation is enabled.

    Sonar X1 Producer Expanded 64-bit
    Computer: Intel Core i7-3770 3.4Ghz, 8GB RAM, Windows 8 
    Interface: Focusrite Scarlett 2i2
    #8
    brundlefly
    Max Output Level: 0 dBFS
    • Total Posts : 14250
    • Joined: 2007/09/14 14:57:59
    • Location: Manitou Spgs, Colorado
    • Status: offline
    Re:Sound playback and MIDI notes don't match... latency??? Or what? 2011/09/06 01:46:54 (permalink)
    Z3TA and a drum line from Session Drummer 3, even though the MIDI notes are aligned, the playback from the the two are off.



    I was going to say this sounds like the Bitbridge bug where it adds en empty buffer to the rendering of some 32-bit synths. but Z3TA and Session Drummer are both available as native x64. Are you sure it happens with those two, specifically, and you're using the x64 version of both? Does the error equal your buffer size?


    One thing that's odd is it looks like the note offs and the end of the transients are aligned...?

    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
    #9
    frankandfree
    Max Output Level: -82 dBFS
    • Total Posts : 447
    • Joined: 2008/04/26 11:56:32
    • Location: Norddeutschland
    • Status: offline
    Re:Sound playback and MIDI notes don't match... latency??? Or what? 2011/09/06 04:56:34 (permalink)
    brundlefly
    One thing that's odd is it looks like the note offs and the end of the transients are aligned...? 

    I could be wrong (ege if it's one shot samples which only coincidentally look like the end is aligned with the note off), but I'd be thinking the release phase in the freezed version should start with the note off. That would mean the release phase actually is setting in early in the freezed verison.
    #10
    The Maillard Reaction
    Max Output Level: 0 dBFS
    • Total Posts : 31918
    • Joined: 2004/07/09 20:02:20
    • Status: offline
    Re:Sound playback and MIDI notes don't match... latency??? Or what? 2011/09/06 10:11:28 (permalink)
    Is this possibly an example of the outcome of the PDC with MIDI clips issue mentioned in another thread recently?


    #11
    brundlefly
    Max Output Level: 0 dBFS
    • Total Posts : 14250
    • Joined: 2007/09/14 14:57:59
    • Location: Manitou Spgs, Colorado
    • Status: offline
    Re:Sound playback and MIDI notes don't match... latency??? Or what? 2011/09/06 10:41:40 (permalink)
    I'd be thinking the release phase in the freezed version should start with the note off. That would mean the release phase actually is setting in early in the freezed verison.



    True. I was assuming a normal patch with zero release time. I suppose a concidental one-shot length is possible. When I first saw this Bitbridge bug, the attacks of the audio transients were coincidentally aligning perfectly with the ends of the MIDI notes, which really threw me for a loop at first. 

    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
    #12
    brundlefly
    Max Output Level: 0 dBFS
    • Total Posts : 14250
    • Joined: 2007/09/14 14:57:59
    • Location: Manitou Spgs, Colorado
    • Status: offline
    Re:Sound playback and MIDI notes don't match... latency??? Or what? 2011/09/06 10:49:36 (permalink)

    Is this possibly an example of the outcome of the PDC with MIDI clips issue mentioned in another thread recently?



    Not in this case because the audio was rendered from existing MIDI, as opposed to being recorded along with MIDI. And the PDC bug causes the MIDI to be late; it's the audio that's late here.


    It would be helpful to be able to see a time scale and estimate the length of the error.

    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
    vaultwit
    Max Output Level: -80 dBFS
    • Total Posts : 543
    • Joined: 2011/08/02 20:53:49
    • Status: offline
    Re:Sound playback and MIDI notes don't match... latency??? Or what? 2011/09/06 13:01:23 (permalink)
    Any other ideas?? Anybody? I can't imagine having to live with out-of-sync tracks forever... it would be a pain to have to manually align ever single track of every single project I ever make with Sonar X1...

    Sonar X1 Producer Expanded 64-bit
    Computer: Intel Core i7-3770 3.4Ghz, 8GB RAM, Windows 8 
    Interface: Focusrite Scarlett 2i2
    #14
    The Maillard Reaction
    Max Output Level: 0 dBFS
    • Total Posts : 31918
    • Joined: 2004/07/09 20:02:20
    • Status: offline
    Re:Sound playback and MIDI notes don't match... latency??? Or what? 2011/09/06 13:12:39 (permalink)
    brundlefly



    Is this possibly an example of the outcome of the PDC with MIDI clips issue mentioned in another thread recently?



    Not in this case because the audio was rendered from existing MIDI, as opposed to being recorded along with MIDI. And the PDC bug causes the MIDI to be late; it's the audio that's late here.


    It would be helpful to be able to see a time scale and estimate the length of the error.


    I'm having trouble wrapping my head around it but consider this.


    Perhaps the freeze process plays the MIDI late... so the audio is rendered in the freeze when it happens. Afterwards it appears that the audio is late. I am suggesting that it might have been that the MIDI was late and the audio was where the MIDI actually was.

    Or something like that.


    If any of that makes sense then it might be wise to inventory the project for anything that might be utilizing PDC.

    If it doesn't make sense... well, it was just a fleeting idea that occurred to me.

    best regards,
    mike
    post edited by mike_mccue - 2011/09/06 13:14:04


    #15
    brundlefly
    Max Output Level: 0 dBFS
    • Total Posts : 14250
    • Joined: 2007/09/14 14:57:59
    • Location: Manitou Spgs, Colorado
    • Status: offline
    Re:Sound playback and MIDI notes don't match... latency??? Or what? 2011/09/06 13:53:44 (permalink)

    Perhaps the freeze process plays the MIDI late... so the audio is rendered in the freeze when it happens



    I don't know the underpinnings of the soft synth rendering process well enough to be sure, but in my experience, nothing can make audio render out of sync with MIDI except a bug like the Bitbridge thing, or something about the way the soft synth itself is generating audio (e.g. long attack or pre-delay in the patch/sample or deliberate sample randomization a la RealGuitars.).


    AFAIK, PDC, Timing Offset, Latency Compensation and other factors that affect MIDI and audio playback and recording sync affect only those real-time processes. Rendering with Fast Bounce enabled is not subject to any of that.


    Th only real-time parameter I know of that that can affect rendering is the buffer size if BounceBuffSizeMsec is set to 0 in AUD.INI so that rendering uses the real-time value by default. And the Bitbridge bug is the only place I've ever seen a render sync issue due to buffer size. Incidentally, for anyone who wants to see this bug in action, the 32-bit DropZone does it. The higher you set your buffer, the later the audio will render.


    post edited by brundlefly - 2011/09/06 13:55:09

    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
    #16
    stevec
    Max Output Level: 0 dBFS
    • Total Posts : 11546
    • Joined: 2003/11/04 15:05:54
    • Location: Parkesburg, PA
    • Status: offline
    Re:Sound playback and MIDI notes don't match... latency??? Or what? 2011/09/06 14:23:07 (permalink)
    There was a key binding in 8.5 to temporarily turn PDC off and an indicator somewhere in the UI.   I haven't needed to use this feature in X1, but perhaps this could be a factor, even though it's a bounce?  Although it sounds like the delay might be too small even for that... 
     
    Yeah, as brundlefly mentioned, it'd be good to know exactly how off it is.
     

    SteveC
    https://soundcloud.com/steve-cocchi
    http://www.soundclick.com/bands/pagemusic.cfm?bandID=39163
     
    SONAR Platinum x64, Intel Q9300 (2.5Ghz), Asus P5N-D, Win7 x64 SP1, 8GB RAM, 1TB internal + ESATA + USB Backup HDDs, ATI Radeon HD5450 1GB RAM + dual ViewSonic VA2431wm Monitors;
    Focusrite 18i6 (ASIO);
    Komplete 9, Melodyne Studio 4, Ozone 7 Advanced, Rapture Pro, GPO5, Valhalla Plate, MJUC comp, MDynamic EQ, lots of other freebie VST plugins, synths and Kontakt libraries
     
    #17
    Jump to:
    © 2024 APG vNext Commercial Version 5.1