Sonar X1 and timing

Author
soundsubs
Max Output Level: -81 dBFS
  • Total Posts : 496
  • Joined: 2003/11/13 13:28:52
  • Location: denver
  • Status: offline
2012/06/18 19:17:05 (permalink)

Sonar X1 and timing

so a friend of mine got me going (as good friends do!) regarding timing.
specifically, regarding this: http://www.innerclocksystems.com/New%20ICS%20Sync-Gen%20II%20Pro.html
i admit i havent really been bothered too much about it, and frankly havent noticed timing problems that much. maybe this is because until final mix time, most of my tracks are 90% midi with the occasional bounced to audio track.
 
anyway, im using a fireface 800, set at 256 samples. for midi im using a midisport 8x8 with current drivers.
 
doing a little impromptu test of quantized clicks, i noted that my audio recordings are about ~350 samples behind the midi click. my asio reported latency is about 352 samples on the output side. i suppose this makes sense. if i recorded all of my midi tracks into audio, i guess this would be a non issue. or at least less of an issue. i rarely use VSTi's, but i understand that the virus TI (and many others im sure) are sample accurate.
 
QUESTION 1: what, if anything, does Sonar X1 do to correct for this?
i assumed (perhaps incorrectly) that Sonar takes care of this by delaying midi tracks by the right amount. maybe thats wrong.
 
QUESTION 2: what, if anything, can i do to maximize the accuracy of timing on my system? is there anything aside from dragging all my audio backwards by ~350 samples?
 
now of course this is not mentioning possible jitter that surely exists. again, i think that some of this is negligible. but for the robotic electronic music that im doing, im probably not paying close enough attention.

Sonar Platinum | modular synthesizers galore
Win 10 // Dell Xeon's | RME UFX | Maschine 2.3 | Virus TI | Roland System-1 
 
#1

13 Replies Related Threads

    Michael Five
    Max Output Level: -83 dBFS
    • Total Posts : 366
    • Joined: 2008/01/18 00:43:06
    • Status: offline
    Re:Sonar X1 and timing 2012/06/18 20:33:35 (permalink)
    well, your post has got me thinking.  But I would observe this, just quickly - midi tracks by themselves produce no sounds. Something has to play them, eh? So maybe it is proper for them to be recorded at a latency offset?   Like I said,  just started thinking about this, could be off in the weeds....

    _______________________________________________
    X1c, p35 6600 Quad OC@3Ghz, FF400, Saffire 6, IBM T42, UAD-1, Superior 2.0
    #2
    Bub
    Max Output Level: -3.5 dBFS
    • Total Posts : 7196
    • Joined: 2010/10/25 10:22:13
    • Location: Sneaking up behind you!
    • Status: offline
    Re:Sonar X1 and timing 2012/06/18 23:23:28 (permalink)
    You have to manually adjust your record latency. There's been a couple of threads explaining it, and someone even posted the test sample files to use, but I can't seem to find them.

    Basically what you do is ...

    Make a test file in Sound Forge using the tone generator. Make it about 20 seconds.

    Import it in to Sonar and drag it to around 10 on the timeline. This allows room for any offset of the recording you make of the test tone.

    Take one of the audio outputs that go to one of your monitors and run it to an input. You're making an audio loop to record the tone.

    Create an audio track and record the test file through the loop.

    Zoom in on the track you recorded and zoom to the sample level and drag the edge of the clip to the first sample. Then make the test tone track and the recorded track visible and count how many samples they differ and input that number in to the Reported Latency box.

    I do this every time I do a fresh install. It seems my Fast Track Ultra is off by 323 samples every time I do it.

    "I pulled the head off Elvis, filled Fred up to his pelvis, yaba daba do, the King is gone, and so are you."
    #3
    Guitarhacker
    Max Output Level: 0 dBFS
    • Total Posts : 24398
    • Joined: 2007/12/07 12:51:18
    • Location: NC
    • Status: offline
    Re:Sonar X1 and timing 2012/06/19 08:44:36 (permalink)
    My test is.... "can I hear the latency? "

    If so... find a solution

    If not.... proceed


    There will be latency in just about everything, even on a live stage due to the laws of physics relating to distance and speed of sound. 

    Without getting too obsessive..... if I can not hear it I ignore it.  No need to go looking for gremlins..... I have better things to be doing in the studio. 

    My website & music: www.herbhartley.com

    MC4/5/6/X1e.c, on a Custom DAW   
    Focusrite Firewire Saffire Interface


    BMI/NSAI

    "Just as the blade chooses the warrior, so too, the song chooses the writer 
    #4
    Lynn
    Max Output Level: -14 dBFS
    • Total Posts : 6117
    • Joined: 2003/11/12 18:36:16
    • Location: Kansas City, MO
    • Status: offline
    Re:Sonar X1 and timing 2012/06/19 10:56:55 (permalink)
    +1
    Guitarhacker


    My test is.... "can I hear the latency? "

    If so... find a solution

    If not.... proceed


    There will be latency in just about everything, even on a live stage due to the laws of physics relating to distance and speed of sound. 

    Without getting too obsessive..... if I can not hear it I ignore it.  No need to go looking for gremlins..... I have better things to be doing in the studio. 



    All the best,
    Lynn

    my songs
    www.soundclick.com/lynnwilson

    www.youtube.com/lywilson
    my videos

    Cakewalk by Bandlab| Sonar Platinum @ 64bits| i7 860 | 8 gigs ram | W10 @ 64 bits | RME FF 400
    #5
    Bristol_Jonesey
    Max Output Level: 0 dBFS
    • Total Posts : 16775
    • Joined: 2007/10/08 15:41:17
    • Location: Bristol, UK
    • Status: offline
    Re:Sonar X1 and timing 2012/06/19 11:12:24 (permalink)
    Guitarhacker


    My test is.... "can I hear the latency? "

    If so... find a solution

    If not.... proceed


    There will be latency in just about everything, even on a live stage due to the laws of physics relating to distance and speed of sound. 

    Without getting too obsessive..... if I can not hear it I ignore it.  No need to go looking for gremlins..... I have better things to be doing in the studio. 


    I totally agree Herb.

    Listening for latency of 352 samples @ a sampling rate of 44.1KHz is like, if my maths are correct,  listening to the delay from your Marshall Stack when you're playing 8 feet away from it.

    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,
    #6
    Cactus Music
    Max Output Level: 0 dBFS
    • Total Posts : 8424
    • Joined: 2004/02/09 21:34:04
    • Status: offline
    Re:Sonar X1 and timing 2012/06/19 11:48:03 (permalink)
    I started reading this thread and at first I'm thinking, "364 samples? is that something we can hear??" I thought Sonar's job was to look after me with these things, so I'm glad the last couple of posts confirm my beliefs. Music should not be perfect anyways, unless it's to be played in a shopping mall or an elevator. :}

    Johnny V  
    Cakelab  
    Focusrite 6i61st - Tascam us1641. 
    3 Desktops and 3 Laptops W7 and W10
     http://www.cactusmusic.ca/
     
     
    #7
    Bristol_Jonesey
    Max Output Level: 0 dBFS
    • Total Posts : 16775
    • Joined: 2007/10/08 15:41:17
    • Location: Bristol, UK
    • Status: offline
    Re:Sonar X1 and timing 2012/06/19 11:56:03 (permalink)
    Johhny, this is the bit I don't quite get. The OP states:

    doing a little impromptu test of quantized clicks, i noted that my audio recordings are about ~350 samples behind the midi click


    Doesn't this simply mean that his audio recordings are simply not being recorded on time? I'm willing to bet that NO audio recording ever made has been absolutely 100% spot on the grid (like 02:01:000). There will always be human errors but it's these errors that breathe life into your music.

    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,
    #8
    js516
    Max Output Level: -84 dBFS
    • Total Posts : 347
    • Joined: 2006/05/17 15:14:53
    • Status: offline
    Re:Sonar X1 and timing 2012/06/19 13:59:12 (permalink)
    sequencer + usb port + midi interface + midi speed limit of 3,906.25 bytes per second + time for external hardware to process the midi data and generate a sound = latency until sound actually appears on your audio interfaces input connector

    That is in addition to the audio hardware latency. :)

    Joe Sera
     
    Gigabyte GA-990FXA-UD3, AMD FX-8320, Corsair 32GB 1600 Ram, MOTU AVB on USB3, AMD Radeon R7-200
    #9
    Bub
    Max Output Level: -3.5 dBFS
    • Total Posts : 7196
    • Joined: 2010/10/25 10:22:13
    • Location: Sneaking up behind you!
    • Status: offline
    Re:Sonar X1 and timing 2012/06/19 22:28:33 (permalink)
    Yeah, you guys are right. Nobody ever wants to get their DAW tweaked and fine tuned as much as they possibly can.

    "I pulled the head off Elvis, filled Fred up to his pelvis, yaba daba do, the King is gone, and so are you."
    #10
    Bristol_Jonesey
    Max Output Level: 0 dBFS
    • Total Posts : 16775
    • Joined: 2007/10/08 15:41:17
    • Location: Bristol, UK
    • Status: offline
    Re:Sonar X1 and timing 2012/06/20 03:58:19 (permalink)
    Not at the expense of a) not making music, b) obsessing over minutiae c) ignoring the fact that trying to achieve zero latency is a physical impossibility

    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,
    #11
    Guitarhacker
    Max Output Level: 0 dBFS
    • Total Posts : 24398
    • Joined: 2007/12/07 12:51:18
    • Location: NC
    • Status: offline
    Re:Sonar X1 and timing 2012/06/20 08:28:42 (permalink)
    I have tweeked the DAW's I use to get the system running as fast and as smooth AND as reliably as I can.... there is a compromise point between the first two and the last one. 

    Without getting too technical, speed of sound is about one foot per millisecond. So on a live stage... if you are 15 feet away from the other guitar player's amp... you essentially have a 15ms latency.  Most musicians can hear the 15ms latency but on a live stage it's easy to compensate for it due to the monitoring system. 

    In a DAW..... 15ms can be prominent enough to be distracting.  Under 10ms, which is easy to achieve on most all systems these days, the latency is not noticeable to very many people.   My system runs somewhere around 8ms max latency.  While I could probably get it lower, I would also risk making the system a bit shaky, so what I have is working well for me. Truthfully, 8ms latency, I can not hear it. 

    I'm as happy as a pig in a mud puddle with 8ms. 

    My website & music: www.herbhartley.com

    MC4/5/6/X1e.c, on a Custom DAW   
    Focusrite Firewire Saffire Interface


    BMI/NSAI

    "Just as the blade chooses the warrior, so too, the song chooses the writer 
    #12
    Bub
    Max Output Level: -3.5 dBFS
    • Total Posts : 7196
    • Joined: 2010/10/25 10:22:13
    • Location: Sneaking up behind you!
    • Status: offline
    Re:Sonar X1 and timing 2012/06/20 20:10:41 (permalink)
    Guitarhacker

    I'm as happy as a pig in a mud puddle with 8ms.
    I can't stand anything over 4 ~ 5ms. At 6ms I have to start freezing tracks to free up resources.

    Just to be clear, I'm not talking about real time latency, I'm talking about record latency, and you don't hear that until you play your project back.

    Sonar is supposed to be able to calculate record latency automatically and compensate, but it's not accurate on some sound cards, that's why Sonar gives you the option to do it manually.

    I looked up some numbers. 1ms is roughly 44samples. If my Fast Track Ultra is off by 323samples, that's roughly 7ms. Add your real time latency and it's possible you are in the double digit ms range during playback.

    Danny Danzi posted a video a few years back showing how to adjust the record latency. It was an excellent video but I haven't been able to find a link.

    Sorry for not explaining myself clearer. We are talking about two different things.

    Thanks,

    Bub



    "I pulled the head off Elvis, filled Fred up to his pelvis, yaba daba do, the King is gone, and so are you."
    #13
    soundsubs
    Max Output Level: -81 dBFS
    • Total Posts : 496
    • Joined: 2003/11/13 13:28:52
    • Location: denver
    • Status: offline
    Re:Sonar X1 and timing 2012/06/22 16:38:49 (permalink)
    well thats a lot of replies. but heres why this is important to me: when i record my final "mixdown" its 80% midi (lets say 20 tracks), and 20% audio (lets say 4 audio tracks), including vocals and other recorded tracks.
    unless sonar is automatically correcting for this by intentionally delaying the playback of the midi tracks by 350 samples or so (to sync with the audio), from what I can tell, there will be a few milliseconds delay between the playback of the midi and the audio tracks which all get mixed down to a stereo track.

    thoughts?

    Sonar Platinum | modular synthesizers galore
    Win 10 // Dell Xeon's | RME UFX | Maschine 2.3 | Virus TI | Roland System-1 
     
    #14
    Jump to:
    © 2025 APG vNext Commercial Version 5.1