Timing is off when recording via MIDI in Sonar

Author
bladetragic
Max Output Level: -80 dBFS
  • Total Posts : 503
  • Joined: 2009/09/12 04:49:24
  • Status: offline
2016/08/24 19:17:27 (permalink)

Timing is off when recording via MIDI in Sonar

I'm noticing that when I record something via midi, Sonar seems to be shifting what I have recorded to the left so that it's early and I have to nudge things back to the right anywhere from about 10 to 30 ms.  Even at lower buffer settings.  Not sure what's causing this.  It's been going on for a while and I've just worked around it, but I feel like I'm wasting valuable time and want to fix it once and for all.  I recently switched over to a laptop, but this problem was happening on my desktop system as well.
 
I'm running an i7-4700MQ @ 2.4 Ghz; 16 gigs of ram; RME Babyface Pro; Windows 10
 
The only other thing I can think of is that maybe there's some problem with using my Fantom X as a midi controller b/c that's the only things that's consistent between my desktop and my laptop, but I can't see why that would be.  Idk.
 
Thanks
#1

16 Replies Related Threads

    bitman
    Max Output Level: -34 dBFS
    • Total Posts : 4105
    • Joined: 2003/11/06 14:11:54
    • Location: Keystone Colorado
    • Status: offline
    Re: Timing is off when recording via MIDI in Sonar 2016/08/24 22:29:51 (permalink)
    Search the forum or google it as this has been well discussed here.
    I can't remember if there was a work around or what but I do remember reading about it.
     
    #2
    bladetragic
    Max Output Level: -80 dBFS
    • Total Posts : 503
    • Joined: 2009/09/12 04:49:24
    • Status: offline
    Re: Timing is off when recording via MIDI in Sonar 2016/08/24 23:09:21 (permalink)
    Hmm.  Ok.  Not sure exactly what to search for, but I'll give it a shot.
    #3
    tenfoot
    Max Output Level: -53.5 dBFS
    • Total Posts : 2186
    • Joined: 2015/01/22 18:12:07
    • Location: Qld, Australia
    • Status: offline
    Re: Timing is off when recording via MIDI in Sonar 2016/08/24 23:21:58 (permalink)
    HI bladetragic.  I have never had this issue myself but have seen quite a few threads on it. Searching 'midi timing' seems to yield quite a few related discussions. Make sure you have the search filter set to all threads rather than time limited.

    Bruce.
     
    Sonar Platinum 2017-09, Studio One 3.5.3, Win 10 x64, Quad core i7, RME Fireface, Behringer X32 Producer, Behringer X32 Rack, Presonus Faderport, Lemure Software Controller (Android), Enttec DMXIS VST lighting controller, Xtempo POK.
    #4
    pinguinotuerto
    Max Output Level: -71 dBFS
    • Total Posts : 976
    • Joined: 2009/12/01 18:46:41
    • Status: offline
    Re: Timing is off when recording via MIDI in Sonar 2016/08/25 00:45:58 (permalink)
    I have this "issue" and it's very easy to correct. Go to Preferences>Audio>Driver Settings and write down the number of samples it says at the bottom next to Total Roundtrip. Enter that same number of samples under your Nudge 1 settings as absolute time (in samples). Once you record MIDI data, highlight your clip and nudge it to the right using the settings I just mentioned and it will line up perfectly. 

    HP DV7-3085 Laptop (Intel Core i7 720 1.6 GHZ, 6 GB RAM, 1333 MHZ FSB, 2 500GB 7200 RPM Internal HDs, 17" screen), HP 2009m Monitor, 2TB Ext Drive
    Line 6 UX8 with PodFarm 2 Platinum

    2 Joe Meek VC6Q British Channels
    Sonar Platinum & X3e Producer (64 Bit)

    AD2 w Roland V-Drums (TD4KX2)
    Windows 7 Home Premium (64 bit)

    KRK VXT 8 Monitors
    Frontier Alphatrack, Razer Naga Mouse, nanoKontrol2
     

    #5
    brundlefly
    Max Output Level: 0 dBFS
    • Total Posts : 14250
    • Joined: 2007/09/14 14:57:59
    • Location: Manitou Spgs, Colorado
    • Status: offline
    Re: Timing is off when recording via MIDI in Sonar 2016/08/25 02:20:06 (permalink)
    First make sure you haven't entered a non-zero 'Timing Offset' under Synchronization in Preferences > Audio Sync and Caching (not to be confused with the Manual Offset for record latency compensation). If you haven't, that setting can actually be used to address the issue if necessary, but it's not ideal because the offset that corrects the timing on recording will work against you on playback if you ever use hardware synths. If you only use soft synths, it might be a viable workaround.
     
    But I would first try changing MIDI interfaces. If you use the Fantom's USB, and the RME has MIDI DIN ports, try that, or vice versa. You might also try connecting a USB interface into a different port on the PC.
     
    I have never figured out why some hardware/interface configurations do this, and I don't recall anyone ever completely resolving it without changing hardware.
     
    Maybe some day I'll be able to get my hands on a system that does this, and figure it out once and for all, but I think every suggestion I've ever made has proven fruitless, and none of the 'victims' has ever come back with a definitive conclusion that some particular piece of hardware or config setting was responsible.
     

    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
    #6
    Bristol_Jonesey
    Max Output Level: 0 dBFS
    • Total Posts : 16775
    • Joined: 2007/10/08 15:41:17
    • Location: Bristol, UK
    • Status: offline
    Re: Timing is off when recording via MIDI in Sonar 2016/08/25 02:40:59 (permalink)
    Not sure if this will help but if you are recording with any "live" Fx plugs, try bypassing them globally. The shortcut for this is 'e'

    CbB, Platinum, 64 bit throughout
    Custom built i7 3930, 32Gb RAM, 2 x 1Tb Internal HDD, 1 x 1TB system SSD (Win 7), 1 x 500Gb system SSD (Win 10), 2 x 1Tb External HDD's, Dual boot Win 7 & Win 10 64 Bit, Saffire Pro 26, ISA One, Adam P11A,
    #7
    bladetragic
    Max Output Level: -80 dBFS
    • Total Posts : 503
    • Joined: 2009/09/12 04:49:24
    • Status: offline
    Re: Timing is off when recording via MIDI in Sonar 2016/08/25 06:17:46 (permalink)
    I will try all suggestions today and report back. Thanks for the feedback everyone!
    #8
    stevec
    Max Output Level: 0 dBFS
    • Total Posts : 11546
    • Joined: 2003/11/04 15:05:54
    • Location: Parkesburg, PA
    • Status: offline
    Re: Timing is off when recording via MIDI in Sonar 2016/08/25 17:45:02 (permalink)
    And one more for ya... 
    Preferences > Synchronization > Full Chase Lock, there is a field called (Best When Chasing to Midi Time Code).  Try increasing that a bit.
     
    Taken from this thread:
    http://forum.cakewalk.com/Midi-events-appear-to-be-written-sooner-than-they-should-m2730028.aspx#2730028
     

    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
     
    #9
    brundlefly
    Max Output Level: 0 dBFS
    • Total Posts : 14250
    • Joined: 2007/09/14 14:57:59
    • Location: Manitou Spgs, Colorado
    • Status: offline
    Re: Timing is off when recording via MIDI in Sonar 2016/08/25 18:33:27 (permalink)
    That field is actually the 'Timing Offset(msec)' setting I was talking about. It's indented under the 'Full Chase Lock' option, but really has nothing to do with it, and can be used whether Full Chase Lock is enabled or not.
     
    What timing Offset does is shift the relationship between the MIDI and audio grids. A positive offset delays audio (including the metronome and soft synth audio) so that you'll actually be playing late relative to the M:B:T grid when recording to the audio metronome.
     
    This will compensate for the 'early MIDI' problem, but the offset is also active on playback so MIDI that's right on the grid after recording will be sent early to hardware synths causing a sync error on playback. Soft synths aren't affected by the M:B:T grid shift because they're buffered up in advance and behave like audio tracks even when not yet frozen.
     
    Normally, this setting is meant to address small MIDI transmission and response delays on the order of 3-6ms to sync playback of hardware synths with in-the-box-audio. Or to do the opposite - with a negative offset - when hardware synths are direct-monitored and not subject to input-monitoring latency. Setting and offset of 30-60ms to fix a MIDI record timing problem is going to cause noticeable playback sync issues with hardware synths. If you don't use them, it might not be a problem but there can be some other weird side-effects when the Timing Offset is that big, and I would avoid it if at all possible.

    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
    #10
    pinguinotuerto
    Max Output Level: -71 dBFS
    • Total Posts : 976
    • Joined: 2009/12/01 18:46:41
    • Status: offline
    Re: Timing is off when recording via MIDI in Sonar 2016/08/25 18:37:46 (permalink)
    I already gave the solution to this problem above and also explained why it happens in the previous thread. It doesn't seem to happen to everyone. I'm one of the lucky few. In my case, my audio interface doesn't have MIDI so I use a separate MIDI/USB interface.

    HP DV7-3085 Laptop (Intel Core i7 720 1.6 GHZ, 6 GB RAM, 1333 MHZ FSB, 2 500GB 7200 RPM Internal HDs, 17" screen), HP 2009m Monitor, 2TB Ext Drive
    Line 6 UX8 with PodFarm 2 Platinum

    2 Joe Meek VC6Q British Channels
    Sonar Platinum & X3e Producer (64 Bit)

    AD2 w Roland V-Drums (TD4KX2)
    Windows 7 Home Premium (64 bit)

    KRK VXT 8 Monitors
    Frontier Alphatrack, Razer Naga Mouse, nanoKontrol2
     

    #11
    brundlefly
    Max Output Level: 0 dBFS
    • Total Posts : 14250
    • Joined: 2007/09/14 14:57:59
    • Location: Manitou Spgs, Colorado
    • Status: offline
    Re: Timing is off when recording via MIDI in Sonar 2016/08/25 19:15:30 (permalink)
    Manually correcting the alignment of every clip you record is not a solution; it's a workaround - and a pretty unpalatable one if you ask me. I'm sure that's essentially what the OP has been doing and is wanting to get way from.

    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
    pinguinotuerto
    Max Output Level: -71 dBFS
    • Total Posts : 976
    • Joined: 2009/12/01 18:46:41
    • Status: offline
    Re: Timing is off when recording via MIDI in Sonar 2016/08/25 19:33:44 (permalink)
    Unpalatable, Brundlefly, really? Since this is an issue that doesn't happen to everyone, and it seems Cakewalk isn't going to address it any time soon, I see it as a solution. The OP has not been doing what I suggested, he and others have been guessing in order to get their tracks to line up. I found a way to make them line up perfectly without having to guess. The offset between the MIDI and the audio amounts to the round-trip latency reported to Sonar by the audio device. Once you enter that number in your Nudge settings, you don't have to deal with guessing. Highlight the clip or clips you just recorded and hit Nudge (which you can do with a single keystroke).

    HP DV7-3085 Laptop (Intel Core i7 720 1.6 GHZ, 6 GB RAM, 1333 MHZ FSB, 2 500GB 7200 RPM Internal HDs, 17" screen), HP 2009m Monitor, 2TB Ext Drive
    Line 6 UX8 with PodFarm 2 Platinum

    2 Joe Meek VC6Q British Channels
    Sonar Platinum & X3e Producer (64 Bit)

    AD2 w Roland V-Drums (TD4KX2)
    Windows 7 Home Premium (64 bit)

    KRK VXT 8 Monitors
    Frontier Alphatrack, Razer Naga Mouse, nanoKontrol2
     

    #13
    Rob[at]Sound-Rehab
    Max Output Level: -47 dBFS
    • Total Posts : 2819
    • Joined: 2011/02/03 04:31:35
    • Location: Sound-Rehab, Austria
    • Status: offline
    Re: Timing is off when recording via MIDI in Sonar 2016/08/26 01:03:17 (permalink)
    I recently investigated the MIDI timing issues when I bought a new and expensive MIDI interface; I had to realize that the MIDI performance in terms of latency and jitter is very dependent on the actual device handling the MIDI I/O but not on PC specs (I did get identical performance for different USB ports and 2 DAWs).
     
    So I recommend first of all measuring the actual MIDI timing of your Fantom X (which is quick and easy; like I did here) and also give the Babyface MIDI ports a try. While many people claim that MIDI timing is not so great if MIDI I/O is just part of another device (and not a dedicated MIDI only device) I have found that among my MIDI devices the older Roland devices (audio interfaces) were the better, the newer (synth module used via USB) was not as good, and the expensive dedicated MIDI interface was the worst ... so eventually I got an ESI M4U XT for MIDI I/O which gave me best/most stable performance ... but as I said, give your options a check by measuring first to see if you could do better by just using another device or port ...
    post edited by Rob[at]Sound-Rehab - 2016/08/26 01:25:36

    GOOD TUNES LAST FOREVER
      +++   Visit the Rehab   +++
     
    DAW: Platinum/X3e, win10 64 bit, i7-3930K (6x3.2GHz), Asus Sabertooth X79, 32 GB DDR3 1600MHz, ATI HD 5450, 120 GB SSD OCZ Agility3, 2x 1TB WD HDD SATA 600
    Audio-Interface: 2x MOTU 1248 AVB, Focusrite OctoPre, (Roland Octa-Capture)   Control-Surface: VS-700C 
    VSTi: WAVES, NI K10u, FabFilter, IK, ... (too many really) 
    #14
    brundlefly
    Max Output Level: 0 dBFS
    • Total Posts : 14250
    • Joined: 2007/09/14 14:57:59
    • Location: Manitou Spgs, Colorado
    • Status: offline
    Re: Timing is off when recording via MIDI in Sonar 2016/08/26 02:02:45 (permalink)
    pinguinotuerto
    The offset between the MIDI and the audio amounts to the round-trip latency reported to Sonar by the audio device.



    Audio latency will not make your MIDI land early in the timeline, it will make it late, and it will be by the outbound audio latency only plus inbound MIDI transmission delay; this might happen to be close to audio RTL in a lot of cases, but that's just coincidence.
     
    There will be a tendency for the performer to compensate for the combined audio and MIDI latency by playing early, but that's usually just a few milliseconds, and just makes up for the latency; there shouldn't be significant overcompensation. The exact result will depend on whether you're input monitoring or direct monitoring hardware synths driven by local control or echoed MIDI, or playing soft synths.
     
    In any case, the OP and others have mentioned errors of 30 milliseconds or more (I recall seeing 75ms in one thread); that's much higher than any typical audio or MIDI transmission latency could account for, regardless of the direction. What you're doing may be working for you, but it's not going to be the right amount of nudge for everyone, and it should not be necessary with properly configured and working interfaces and drivers running at playable latencies.

    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
    #15
    brundlefly
    Max Output Level: 0 dBFS
    • Total Posts : 14250
    • Joined: 2007/09/14 14:57:59
    • Location: Manitou Spgs, Colorado
    • Status: offline
    Re: Timing is off when recording via MIDI in Sonar 2016/08/26 02:02:45 (permalink)
    Dupe Post.
    post edited by brundlefly - 2016/08/26 12:47:53

    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
    markyzno
    Max Output Level: -66 dBFS
    • Total Posts : 1216
    • Joined: 2011/02/08 06:40:20
    • Location: UK
    • Status: offline
    Re: Timing is off when recording via MIDI in Sonar 2016/08/26 02:54:01 (permalink)
    pinguinotuerto
    Unpalatable, Brundlefly, really? Since this is an issue that doesn't happen to everyone, and it seems Cakewalk isn't going to address it any time soon, I see it as a solution. 



    No, it's a workaround as it doesn't address the root cause.

    Sonar Platinum 64 bit > Pro tools 10.3.2 >Intel i7 3770K > 16Gb Ram > Gigabyte Z77-D3H Motherboard> NVIDIA GeForce GTX 660 2 GB > ATi RADEON HD5700 > 240GB OCZ Agility 3 SSD> Win 10 home 64 bit> Delta 1010 > MOTU Audio Express > MA-15D's > NI Ultimate 9 > NI Kontrol S61 1.1 > NI MAschine Studio 2.3 / KORG MS-20 Mini - Arturia MicroBrute > KORG SQ1 - KORG Kaoss Pad KP3 > iPad and IO Dock 2 running various bits > Bunch of guitars >

    Sound Design on IMDB --
     
    #17
    Jump to:
    © 2025 APG vNext Commercial Version 5.1