Timing Between Midi Track And VSTi TRack

Author
Ruckman65
Max Output Level: -88 dBFS
  • Total Posts : 148
  • Joined: 2015/02/12 09:25:03
  • Status: offline
2016/11/09 00:51:08 (permalink)

Timing Between Midi Track And VSTi TRack

I have a midi drum track. When I add a vsti to the project, such as Addictive Drums, and duplicate the midi track into Addictive Drums, the two tracks are never in sync. I have to move the vsti track back and forward until they are in sync. Is there any way to automate that process or stop it from happening in the first place?

Win10 64bit Sonar Platinum
ASUS SSD 128gb
i7 Intel 2.8mhz
Toshiba Portable HD 2 gb x 3
16gb memory
Nvidia 960M
Komplete Kontrol S61 Mk II
Komplete Kontrol S49
Focusrite Sapphire 6i6
 
#1

18 Replies Related Threads

    azslow3
    Max Output Level: -42.5 dBFS
    • Total Posts : 3297
    • Joined: 2012/06/22 19:27:51
    • Location: Germany
    • Status: offline
    Re: Timing Between Midi Track And VSTi TRack 2016/11/09 06:37:47 (permalink)
    What you use as the output for your original track? In other words, audio produced by which devices/software you try to sync with audio produces by AD?
    And the second important question, how far are you moving clips so they are in sync? Several samples, 1-5ms or more?
     
    I do not have problems with simultaneous output to TD-11 + AD, but I am home player and several ms delay is probably not an issue for me.

    Sonar 8LE -> Platinum infinity, REAPER, Windows 10 pro
    GA-EP35-DS3L, E7500, 4GB, GTX 1050 Ti, 2x500GB
    RME Babyface Pro (M-Audio Audiophile Firewire/410, VS-20), Kawai CN43, TD-11, Roland A500S, Akai MPK Mini, Keystation Pro, etc.
    www.azslow.com - Control Surface Integration Platform for SONAR, ReaCWP, AOSC and other accessibility tools
    #2
    Ruckman65
    Max Output Level: -88 dBFS
    • Total Posts : 148
    • Joined: 2015/02/12 09:25:03
    • Status: offline
    Re: Timing Between Midi Track And VSTi TRack 2016/11/09 07:41:33 (permalink)
    Hello Azslow3. I am using a Native Instruments Komplete Audio 6. The midi track generates sound through a Sound Canvas SC88 Pro running into the Komplete Audio 6. There is absolutely no latency with the Sound Canvas. I have to move the AD track forward anything up to around half a second. So, the difference in timing is quite significant. Same things happens if I have a midi track with, say, a guitar part and add a vsti such as Real Strat.    

    Win10 64bit Sonar Platinum
    ASUS SSD 128gb
    i7 Intel 2.8mhz
    Toshiba Portable HD 2 gb x 3
    16gb memory
    Nvidia 960M
    Komplete Kontrol S61 Mk II
    Komplete Kontrol S49
    Focusrite Sapphire 6i6
     
    #3
    azslow3
    Max Output Level: -42.5 dBFS
    • Total Posts : 3297
    • Joined: 2012/06/22 19:27:51
    • Location: Germany
    • Status: offline
    Re: Timing Between Midi Track And VSTi TRack 2016/11/09 10:02:11 (permalink)
    Half a second is significant delay...
    Probably you have already done that, but it does not take a lot of time to check:
    1) Preferences/Audio/Driver settings. I assume you use ASIO. Is "Total Roundtrip" less then 50ms?
    2) Preferences/Audio/Sync and Caching. Non zero Timing Offset or Manual Offset ?
    3) Preferences/Project/MIDI. Anything set in "Send MIDI Sync" or "Send MIDI Time Code" ?
     
    Freeze AD track. Bypass all audio effects ("E" or "FX" button on Control Bar). Does that change anything? Explicitly check that you do not have any mastering plug-ins in the project, they can introduce up to 1sec delay. To be sure, test you problem on completely new project without any effects.
     
    You write you have no latency with Sound Canvas. Does that mean you can play live (from you Casio) into it throw Sonar (so, Casio on the track input, SC on the track output) without latency? Can you play AD live with Casio (better test in the same project in which you have the problem)?
     
    If you really have to move AD track forward (in time) compare to SC, that means you ask VSTi to play LATER to be in sync with hardware SC. In case the problem is somewhere in the delayed audio route, I would expect reversed situation.

    Sonar 8LE -> Platinum infinity, REAPER, Windows 10 pro
    GA-EP35-DS3L, E7500, 4GB, GTX 1050 Ti, 2x500GB
    RME Babyface Pro (M-Audio Audiophile Firewire/410, VS-20), Kawai CN43, TD-11, Roland A500S, Akai MPK Mini, Keystation Pro, etc.
    www.azslow.com - Control Surface Integration Platform for SONAR, ReaCWP, AOSC and other accessibility tools
    #4
    Ruckman65
    Max Output Level: -88 dBFS
    • Total Posts : 148
    • Joined: 2015/02/12 09:25:03
    • Status: offline
    Re: Timing Between Midi Track And VSTi TRack 2016/11/10 04:32:33 (permalink)
    1) Preferences/Audio/Driver settings. I assume you use ASIO. Is "Total Roundtrip" less then 50ms?
    Roundtrip of 18.3 ms
    2) Preferences/Audio/Sync and Caching. Non zero Timing Offset or Manual Offset ?
    Under 'Record Latency Adjustment', there is a Manual Offset box which is set at 0 by default. I cannot see any option with 'Non Zero Timing Offset'.
    3) Preferences/Project/MIDI. Anything set in "Send MIDI Sync" or "Send MIDI Time Code" ?
    Full chase lock is selected (Best when chasing to midi timecode. The offset is 0.00.
     
    As suggested, I froze the AD track and ensured there were no plug ins at all. The latency is still there.
     
    I can play through the Casio into AD and there is no latency. So, still unsure how to correct this!
     
     

    Win10 64bit Sonar Platinum
    ASUS SSD 128gb
    i7 Intel 2.8mhz
    Toshiba Portable HD 2 gb x 3
    16gb memory
    Nvidia 960M
    Komplete Kontrol S61 Mk II
    Komplete Kontrol S49
    Focusrite Sapphire 6i6
     
    #5
    azslow3
    Max Output Level: -42.5 dBFS
    • Total Posts : 3297
    • Joined: 2012/06/22 19:27:51
    • Location: Germany
    • Status: offline
    Re: Timing Between Midi Track And VSTi TRack 2016/11/10 06:05:02 (permalink)
    I must admit, I am also puzzled now...
    Ruckman65
    I can play through the Casio into AD and there is no latency. So, still unsure how to correct this!

    Can you do the following?
    * set MIDI -> SC and MIDI -> AD Inputs to "Omni", check there is no "MIDI loops" in the project (no VSTi has "MIDI Output on", etc) and set "Input Echo" to "On" on both
    * when you play with Casio, SC and AD should sound simultaneously. Do you have the delay in this case?
    Arm both tracks and record several notes. Are resulting clips aligned? When you "play" recorded performance, does it sounds different from what you could hear live?

    Sonar 8LE -> Platinum infinity, REAPER, Windows 10 pro
    GA-EP35-DS3L, E7500, 4GB, GTX 1050 Ti, 2x500GB
    RME Babyface Pro (M-Audio Audiophile Firewire/410, VS-20), Kawai CN43, TD-11, Roland A500S, Akai MPK Mini, Keystation Pro, etc.
    www.azslow.com - Control Surface Integration Platform for SONAR, ReaCWP, AOSC and other accessibility tools
    #6
    bvideo
    Max Output Level: -58 dBFS
    • Total Posts : 1707
    • Joined: 2006/09/02 22:20:02
    • Status: offline
    Re: Timing Between Midi Track And VSTi TRack 2016/11/10 18:22:15 (permalink)
    I don't suppose you are using "Direct monitoring for latency-free recording (inputs 1 / 2)" for your SC, are you?

    W10 pro, Sonar Platinum, Alesis Multimix 16 FW, MOTU Express 128, Gigabyte Z370 HD3P, i7 8700K, 16 Gigs, ssd + 2 X 2T disks, D50-MEX, JV80, A90EX, M1REX
    #7
    Cactus Music
    Max Output Level: 0 dBFS
    • Total Posts : 8424
    • Joined: 2004/02/09 21:34:04
    • Status: offline
    Re: Timing Between Midi Track And VSTi TRack 2016/11/10 19:13:46 (permalink)
    First I don't see a mention of an audio interface in your signature. 
    Are you using an ASIO audio interface? 
     
    The drivers are the heart of the system and without knowing what your interfacing with we are guessing. 

    Johnny V  
    Cakelab  
    Focusrite 6i61st - Tascam us1641. 
    3 Desktops and 3 Laptops W7 and W10
     http://www.cactusmusic.ca/
     
     
    #8
    chuckebaby
    Max Output Level: 0 dBFS
    • Total Posts : 13146
    • Joined: 2011/01/04 14:55:28
    • Status: offline
    Re: Timing Between Midi Track And VSTi TRack 2016/11/10 19:47:45 (permalink)
    Cactus Music
    First I don't see a mention of an audio interface in your signature. 
    Are you using an ASIO audio interface? 
     
    The drivers are the heart of the system and without knowing what your interfacing with we are guessing. 


    he is using an NI Komplete Audio 6. but agree with the drivers comment.
    I believe someone asked him if he was using ASIO driver mode, but not sure if he answered.
    this sounds to me like a classic case of latency.

    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
    Ruckman65
    Max Output Level: -88 dBFS
    • Total Posts : 148
    • Joined: 2015/02/12 09:25:03
    • Status: offline
    Re: Timing Between Midi Track And VSTi TRack 2016/11/11 03:42:31 (permalink)
    chuckebaby
    Cactus Music
    First I don't see a mention of an audio interface in your signature. 
    Are you using an ASIO audio interface? 
     
    The drivers are the heart of the system and without knowing what your interfacing with we are guessing. 


    he is using an NI Komplete Audio 6. but agree with the drivers comment.
    I believe someone asked him if he was using ASIO driver mode, but not sure if he answered.
    this sounds to me like a classic case of latency.


    Yes, I am using NI Komplete Audio 6 and am using the ASIO driver. It sure seems like a latency issue but still can't figure out why or why the latency is so great. Sonar reports the roundtrip latency as 18ms which shouldn't make that much difference. 



    Win10 64bit Sonar Platinum
    ASUS SSD 128gb
    i7 Intel 2.8mhz
    Toshiba Portable HD 2 gb x 3
    16gb memory
    Nvidia 960M
    Komplete Kontrol S61 Mk II
    Komplete Kontrol S49
    Focusrite Sapphire 6i6
     
    #10
    Ruckman65
    Max Output Level: -88 dBFS
    • Total Posts : 148
    • Joined: 2015/02/12 09:25:03
    • Status: offline
    Re: Timing Between Midi Track And VSTi TRack 2016/11/11 03:43:52 (permalink)
    bvideo
    I don't suppose you are using "Direct monitoring for latency-free recording (inputs 1 / 2)" for your SC, are you?


    I use the audio out from the SC into the audio interface and there is absolutely no latency there.

    Win10 64bit Sonar Platinum
    ASUS SSD 128gb
    i7 Intel 2.8mhz
    Toshiba Portable HD 2 gb x 3
    16gb memory
    Nvidia 960M
    Komplete Kontrol S61 Mk II
    Komplete Kontrol S49
    Focusrite Sapphire 6i6
     
    #11
    Ruckman65
    Max Output Level: -88 dBFS
    • Total Posts : 148
    • Joined: 2015/02/12 09:25:03
    • Status: offline
    Re: Timing Between Midi Track And VSTi TRack 2016/11/11 03:44:24 (permalink)
    azslow3
    I must admit, I am also puzzled now...
    Ruckman65
    I can play through the Casio into AD and there is no latency. So, still unsure how to correct this!

    Can you do the following?
    * set MIDI -> SC and MIDI -> AD Inputs to "Omni", check there is no "MIDI loops" in the project (no VSTi has "MIDI Output on", etc) and set "Input Echo" to "On" on both
    * when you play with Casio, SC and AD should sound simultaneously. Do you have the delay in this case?
    Arm both tracks and record several notes. Are resulting clips aligned? When you "play" recorded performance, does it sounds different from what you could hear live?


    I will try this soon and see what the results look like.

    Win10 64bit Sonar Platinum
    ASUS SSD 128gb
    i7 Intel 2.8mhz
    Toshiba Portable HD 2 gb x 3
    16gb memory
    Nvidia 960M
    Komplete Kontrol S61 Mk II
    Komplete Kontrol S49
    Focusrite Sapphire 6i6
     
    #12
    Ruckman65
    Max Output Level: -88 dBFS
    • Total Posts : 148
    • Joined: 2015/02/12 09:25:03
    • Status: offline
    Re: Timing Between Midi Track And VSTi TRack 2016/11/11 04:22:55 (permalink)
    azslow3
    I must admit, I am also puzzled now...
    Ruckman65
    I can play through the Casio into AD and there is no latency. So, still unsure how to correct this!

    Can you do the following?
    * set MIDI -> SC and MIDI -> AD Inputs to "Omni", check there is no "MIDI loops" in the project (no VSTi has "MIDI Output on", etc) and set "Input Echo" to "On" on both
    * when you play with Casio, SC and AD should sound simultaneously. Do you have the delay in this case?
    Arm both tracks and record several notes. Are resulting clips aligned? When you "play" recorded performance, does it sounds different from what you could hear live?


    OK. I have tried that. When playing the Casio into the SC and AD, there is a delay of perhaps 5ms. When I record on both tracks, both clips are aligned. On playback, the delay stretches to something closer to 15ms.

    Win10 64bit Sonar Platinum
    ASUS SSD 128gb
    i7 Intel 2.8mhz
    Toshiba Portable HD 2 gb x 3
    16gb memory
    Nvidia 960M
    Komplete Kontrol S61 Mk II
    Komplete Kontrol S49
    Focusrite Sapphire 6i6
     
    #13
    Ruckman65
    Max Output Level: -88 dBFS
    • Total Posts : 148
    • Joined: 2015/02/12 09:25:03
    • Status: offline
    Re: Timing Between Midi Track And VSTi TRack 2016/11/11 04:54:04 (permalink)
    I just measured the playback latency. When recording an SC track simultaneously with an AD track, when I hit the keyboard note, the two tracks sound pretty much at the same time. On playback, there is a difference between the two tracks of almost 100ms. When I nudge the AD track forward by 100ms, they play in time. I have adjusted the buffer size from 32 samples up to 1024 samples and it makes no difference at all to the latency during playback. The AD track still needs to be nudged forward by 100ms to be in time with the SC track.

    Win10 64bit Sonar Platinum
    ASUS SSD 128gb
    i7 Intel 2.8mhz
    Toshiba Portable HD 2 gb x 3
    16gb memory
    Nvidia 960M
    Komplete Kontrol S61 Mk II
    Komplete Kontrol S49
    Focusrite Sapphire 6i6
     
    #14
    azslow3
    Max Output Level: -42.5 dBFS
    • Total Posts : 3297
    • Joined: 2012/06/22 19:27:51
    • Location: Germany
    • Status: offline
    Re: Timing Between Midi Track And VSTi TRack 2016/11/11 08:40:24 (permalink)
    Ruckman65
    OK. I have tried that. When playing the Casio into the SC and AD, there is a delay of perhaps 5ms. When I record on both tracks, both clips are aligned. On playback, the delay stretches to something closer to 15ms.

    MIDI is processed a bit different when played live vs recorded. Recorded playback is the subject of Sonar internal delay compensations for recorded material and for playback.
     
    For a good reason (too long for this post), we should distinguish between delays with order of your Round Trip Time (Effective latency), so delays 2*20ms ~ 40ms, and bigger delays, like 100ms and more. The first kind is expected, the second is an indication that something is wrong.
     
    Ruckman65
    I just measured the playback latency. When recording an SC track simultaneously with an AD track, when I hit the keyboard note, the two tracks sound pretty much at the same time. On playback, there is a difference between the two tracks of almost 100ms.

    If I understand both messages right, if you just hear the output of 2 MIDI tracks going to SC and AD, the delay is ~15ms. If you RECORD SC output (as audio), then when you play that recorded track with MIDI->AD track (directly/freeze/recorded), the delay is ~100ms. Right?
     
    If so (and useful in general) is to check that Sonar has correct information about delays in your NI. Some interfaces/drivers report it correctly, some report it a bit wrong, some return complete nonsense. There are "loop back" tests to check that reported values as seen in Sonar (so, your 18ms) are real. I normally use the following method (turn off/disconnect completely any monitors/headphones attached to the interface):
    * put some file on another player (phone) and connect one channel from it to the first interface input
    * loop the first interface output to the second interface input
    * create one mono track with input set to the first interface input and output set to the first interface output, enable echo
    * create another stereo track with input set to both interface inputs, disable echo on this track
    * arm second track and record external player, so one channel will record the signal directly and another will record the same signal looped throw the interface and Sonar.
    * check time shift between channels (amplitude obviously does not matter). Since Sonar apply whatever compensation it currently think to BOTH channels (Sonar has no idea that once channel is physically looped), the difference is absolute and real.
    * compare that number with reported in Sonar, if it is wrong by more then ~1ms, there is a setting in Sonar to compensate.
     
    In addition to nudging, there is another method to "correct" timing: "Cakewalk Channel Tools" FX plug-in. It has "Delay" section. So you can put it on AD2 instrument track and set delay to 100ms. While working well for 1-2ms, with bigger values this method prevents low latency recording while listening current material. But if you first record everything with SC and then add VSTi(s), that can be a reasonable workaround.
     

    Sonar 8LE -> Platinum infinity, REAPER, Windows 10 pro
    GA-EP35-DS3L, E7500, 4GB, GTX 1050 Ti, 2x500GB
    RME Babyface Pro (M-Audio Audiophile Firewire/410, VS-20), Kawai CN43, TD-11, Roland A500S, Akai MPK Mini, Keystation Pro, etc.
    www.azslow.com - Control Surface Integration Platform for SONAR, ReaCWP, AOSC and other accessibility tools
    #15
    azslow3
    Max Output Level: -42.5 dBFS
    • Total Posts : 3297
    • Joined: 2012/06/22 19:27:51
    • Location: Germany
    • Status: offline
    Re: Timing Between Midi Track And VSTi TRack 2016/11/11 15:28:06 (permalink)
    I have tried similar framework with my hardware and here is what I get.
    Sonar Plat (latest version), Kawai CN-43 as "external MIDI Synth", AD2, VS-20 as the interface (ASIO, buffer 96, effective latency 13ms).
    Kawai get MIDI throw USB, its audio output is connected to VS-20 input. Kawai and VS-20 are connected throw separately powered USB Hub with 10m cable (usually connecting an interface throw USB hub is a bad idea, 10m long is a very bad idea... but I am lucky and that combination is working sufficient for my purpose).
     
    * there is no significant delay playing live (but samples I use are so different that even with corrected timing the combination does not sound as a single drum set)
    * I put a MIDI clip to AD2 and MIDI track with output to Kawai
    * I can not notice any difference between playing clips and playing live with AD2 and Kawai enabled
    * I have recorded Kawai into the third track
    * I have rendered (with freeze then drag, not AUX...) AD2 into the forth track
     
    Comparing the third track with the forth track (so, rendered AD2 with recorded Kawai) I get 5ms difference. AD2 result is early then Kawai (so should be nudged forward), I guess Sonar "think" that I have "played" along with AD2 and "corrected" the recording by the interface output latency (~5ms).
     
    So, from my perspective, your 5ms - 15ms deference is ok. But 100ms and more is not.

    Sonar 8LE -> Platinum infinity, REAPER, Windows 10 pro
    GA-EP35-DS3L, E7500, 4GB, GTX 1050 Ti, 2x500GB
    RME Babyface Pro (M-Audio Audiophile Firewire/410, VS-20), Kawai CN43, TD-11, Roland A500S, Akai MPK Mini, Keystation Pro, etc.
    www.azslow.com - Control Surface Integration Platform for SONAR, ReaCWP, AOSC and other accessibility tools
    #16
    Ruckman65
    Max Output Level: -88 dBFS
    • Total Posts : 148
    • Joined: 2015/02/12 09:25:03
    • Status: offline
    Re: Timing Between Midi Track And VSTi TRack 2016/11/23 23:17:19 (permalink)
    Well, I have discovered the strangest thing. When I disable the wifi driver on my laptop, the latency almost completely disappears. This is good news on one front (no latency) but is disappointing on another (can't access the Internet when working in Sonar). As much as I think the NI Komplete Audio 6 is a great unit, this may be a deal breaker.

    Win10 64bit Sonar Platinum
    ASUS SSD 128gb
    i7 Intel 2.8mhz
    Toshiba Portable HD 2 gb x 3
    16gb memory
    Nvidia 960M
    Komplete Kontrol S61 Mk II
    Komplete Kontrol S49
    Focusrite Sapphire 6i6
     
    #17
    Ruckman65
    Max Output Level: -88 dBFS
    • Total Posts : 148
    • Joined: 2015/02/12 09:25:03
    • Status: offline
    Re: Timing Between Midi Track And VSTi TRack 2016/11/23 23:18:01 (permalink)
    Thank you all for your advice and assistance. You are a great group of people!
     

    Win10 64bit Sonar Platinum
    ASUS SSD 128gb
    i7 Intel 2.8mhz
    Toshiba Portable HD 2 gb x 3
    16gb memory
    Nvidia 960M
    Komplete Kontrol S61 Mk II
    Komplete Kontrol S49
    Focusrite Sapphire 6i6
     
    #18
    brundlefly
    Max Output Level: 0 dBFS
    • Total Posts : 14250
    • Joined: 2007/09/14 14:57:59
    • Location: Manitou Spgs, Colorado
    • Status: offline
    Re: Timing Between Midi Track And VSTi TRack 2016/11/24 12:02:02 (permalink)
    WiFi drivers are notorious for increasing Deferred Procedure Call (DPC) latency. This is a measure of the time it takes your CPU to respond to a request from an application or driver. With most audio drivers, audio latency is unaffected; high DPC latency just causes buffers to be dropped so you get clicks and pops. Possibly the NI driver is detecting this, and increasing latency automatically, but I've never heard of this before.
     
    In any case, the bottom line is that the WiFi driver is going to cause trouble with any audio interface whether it manifests as higher latency or clicks/pops/dropouts. You're just going to have to bite the bullet and disable it when working in SONAR (or any other DAW app). If you really need Internet access at the same time, you'll need to use wired connection.
     
    Free DPC Latency checkers:
     
    http://www.resplendence.com/latencymon
     
    http://www.thesycon.de/eng/latency_check.shtml
     
     

    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
    #19
    Jump to:
    © 2025 APG vNext Commercial Version 5.1