The importance of the Loopback test and using Sonar

Author
Cactus Music
Max Output Level: 0 dBFS
  • Total Posts : 8424
  • Joined: 2004/02/09 21:34:04
  • Status: offline
2016/10/21 15:08:58 (permalink)

The importance of the Loopback test and using Sonar

I did this test a few years ago and thought I run it again. Mostly to see if the new drivers for my Tascam us1641 are really as good as I was experiencing. I was right. In my test prior to the new drivers the Tascam was off time. Now it is bang on, but,, only in ASIO mode. This is why I'm posting this thread here. I think everyone needs to do this test. Especially if you've been advised to use WDM mode.  Don't unless you test!   
Not all interfaces will pass the test under WDM mode. Very few probably. 
 
And it is very clear why MME mode is to be avoided for anything but playback. 
 
 I ran the test using 3 different computers, My main DAW ( W10) , Laptop (W7) and my old DAW (W7) .  All are 64 bit windows up to date.  
Main DAW and Laptop running Sonar Plat latest build ( my signature) Old DAW Sonar studio x3e 
 
It was interesting that my Scarlett 6i6 will not run on any computer in WDM or MME mode. I can change to these modes and run the wave profiler, but the minute focus is on the project the Audio Engine stops.. and at any setting or buffers. The Tascam must have WDM drivers or the Scarletts drivers are not stable in this mode.
 
The test results were exactly the same on all 3 computers 
ASIO mode bang on ( even if you zoom way in.. and WDM mode a little late,, MME mode WAY late. 
 

 
 
FYI The loopback test is easy.
First set up you interface with a short cable running from an output to an input. 
I unplug my monitors from 1/2 to avoid mishaps and used output #1 into input #1.  
You can use headphones if you want to listen,, but your eyes are more important. Turn them way down. 
Turn the input gain off for now. 
 
Open a blank Project.
insert a MIDI track and draw a few snare or kick notes. Only need a few.
Then insert an Audio track for each interface or mode you want to test. 
Insert any drum synth and freeze it. This creates an audio track.
Notice it should line up with the midi track.
Assign the synth audio output to MASTER or which ever output your going to send from. 
For the audio tracks other than the synth set input to match your patching. 
Then set output to "none" to avoid feedback loop. do not engage INPUT ECHO. ( double insurance) 
 
Now pick an audio track, name it and set it to REC. 
Hit play and adjust your level at the interface. Try for a good almost over the top level.
Now record the track.  
Repeat for as many modes and interfaces as desired.  
 
I tested using different buffer settings and this had absolutely no bearing on the results. So just use what ever you normally use. I used 44.1/24 .  
 
 
post edited by Cactus Music - 2016/11/01 23:23:57

Johnny V  
Cakelab  
Focusrite 6i61st - Tascam us1641. 
3 Desktops and 3 Laptops W7 and W10
 http://www.cactusmusic.ca/
 
 
#1

13 Replies Related Threads

    kzmaier
    Max Output Level: -81 dBFS
    • Total Posts : 461
    • Joined: 2010/10/18 08:20:01
    • Location: Rochester, NY
    • Status: offline
    Re: The importance of the Loopback test and using Sonar 2016/10/21 15:18:06 (permalink)
    I did the same test a while back, 6i6 and asio, and saw same results!!!

    Best Regards,
    Ken
    Bandlab Cakewalk - i5/8G Focusrite Scarlett 6i6 / Boss gt001
     
    www.reverbnation.com/kzmaier
     
     
    #2
    Cactus Music
    Max Output Level: 0 dBFS
    • Total Posts : 8424
    • Joined: 2004/02/09 21:34:04
    • Status: offline
    Re: The importance of the Loopback test and using Sonar 2016/10/21 15:24:40 (permalink)
    Here's a few screen shots from when I did the test a few years ago testing a few different interfaces I have kicking around.
    This is a Behringer UCS 200 , I came with mixer. They have a few versons of this and possibly the cheapest interface on the market.. But no ASIO drivers,, it uses what it calls USB audio codex and Sonar only works in MME mode.I use it for live music playback without issue,, it's dead simple plug and play any OS. Always works... But you can see why it's a bad Idea for trying to overdub. 

     
     
    This is this cool old PCI card my son scored from a Radio Station rig. The company still supports it even though it's from I believe 2002.  And even though I mislabelled it,, the second track is WDM mode and it surprisingly is bang on. 
     

     
    I also tested my old Creative Labs Audigy II card. Interesting that it was early in WDM mode,, it was close to right on in ASIO. I don't have the screen shot stored, but it drifted over time in both modes. 
     

     

    Johnny V  
    Cakelab  
    Focusrite 6i61st - Tascam us1641. 
    3 Desktops and 3 Laptops W7 and W10
     http://www.cactusmusic.ca/
     
     
    #3
    chuckebaby
    Max Output Level: 0 dBFS
    • Total Posts : 13146
    • Joined: 2011/01/04 14:55:28
    • Status: offline
    Re: The importance of the Loopback test and using Sonar 2016/10/21 16:28:39 (permalink)
    cool stuff Johnny. really interesting tests. going to give this a try myself.
    thanks for sharing.

    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
       
    #4
    Cactus Music
    Max Output Level: 0 dBFS
    • Total Posts : 8424
    • Joined: 2004/02/09 21:34:04
    • Status: offline
    Re: The importance of the Loopback test and using Sonar 2016/10/21 16:54:04 (permalink)
    It's more for people with iffy interfaces than those of us who purchased something known to have good drivers. 
    But I was pleased to see that Tascam did improve my drivers for the us1641,, to bad it was after the fact and I'd already bought the Scarlett. But it's good to have both. 

    Johnny V  
    Cakelab  
    Focusrite 6i61st - Tascam us1641. 
    3 Desktops and 3 Laptops W7 and W10
     http://www.cactusmusic.ca/
     
     
    #5
    chuckebaby
    Max Output Level: 0 dBFS
    • Total Posts : 13146
    • Joined: 2011/01/04 14:55:28
    • Status: offline
    Re: The importance of the Loopback test and using Sonar 2016/10/21 17:36:52 (permalink)
    I own a Scarlett as well (The 18I8)
    some really cool tests that I enjoyed reading. And good info for some who have older AI units.

    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
       
    #6
    slartabartfast
    Max Output Level: -22.5 dBFS
    • Total Posts : 5289
    • Joined: 2005/10/30 01:38:34
    • Status: offline
    Re: The importance of the Loopback test and using Sonar 2016/10/21 21:59:05 (permalink)
    Maybe I am reading the screenshots wrong, but it looks like you are "recording" the looped back audio earlier in the timeline than the original in some tests. If so, then the problem must be some sort of delay compensation that is overcompensating. A too large buffer or processing delay would result in the looped back signal being recorded after the original. If the compensation is consistent, you might be able to correct it by setting the delay manually.
    #7
    RSMCGUITAR
    Max Output Level: -64 dBFS
    • Total Posts : 1318
    • Joined: 2014/12/27 02:33:15
    • Location: Toronto
    • Status: offline
    Re: The importance of the Loopback test and using Sonar 2016/10/22 00:36:33 (permalink)
    Good timing on this. I recently realized that I have to nudge my takes forward using 1 medium and 1 small nudge. Total headache. If I run this test I assume that I use the results to apply a manual compensation?
    #8
    Cactus Music
    Max Output Level: 0 dBFS
    • Total Posts : 8424
    • Joined: 2004/02/09 21:34:04
    • Status: offline
    Re: The importance of the Loopback test and using Sonar 2016/10/22 11:48:52 (permalink)
    slartabartfast
    Maybe I am reading the screenshots wrong, but it looks like you are "recording" the looped back audio earlier in the timeline than the original in some tests. If so, then the problem must be some sort of delay compensation that is overcompensating. A too large buffer or processing delay would result in the looped back signal being recorded after the original. If the compensation is consistent, you might be able to correct it by setting the delay manually.




     
    This is why it's important to perform this test. Some audio drivers "lie" to Sonar and the offset is calculated incorrectly. The loop back test will show you if your driver is performing correctly, Sonar can only calculate based on what the driver reports. 
     
    And as I said buffers have no bearing on the results. You can use your lowest and highest buffer and the results will not change other that run the risk of an audio engine dropout at the lower settings. 
     
    Of course for the test we use a brand new project with absolutely no effects. Your welcome to try the test and see what happens when you add a "look ahead" effect to your master bin. 

    Johnny V  
    Cakelab  
    Focusrite 6i61st - Tascam us1641. 
    3 Desktops and 3 Laptops W7 and W10
     http://www.cactusmusic.ca/
     
     
    #9
    Larry Jones
    Max Output Level: -74 dBFS
    • Total Posts : 834
    • Joined: 2007/10/11 02:45:33
    • Location: Southern California
    • Status: offline
    Re: The importance of the Loopback test and using Sonar 2016/10/23 00:41:20 (permalink)
    Thank you, Johnny, for the step-by-step. I've wondered about this procedure literally for years, and haven't gotten around to figuring out how to do it. I have a first gen 6i6 and I do a lot of guitar playing through amp sims, monitoring back through the SONAR input. Latency is acceptable but noticeable. Maybe now I can find out what it really is. (Latency is supposed to be better with 2nd gen Scarletts. I wonder...)

    SONAR Platinum 2017.10 • CbB  Win10 • i7/2600 • 16GB RAM • Focusrite Scarlett 6i6 • NVIDIA GeForce 8400GS
    #10
    Cactus Music
    Max Output Level: 0 dBFS
    • Total Posts : 8424
    • Joined: 2004/02/09 21:34:04
    • Status: offline
    Re: The importance of the Loopback test and using Sonar 2016/10/23 01:04:28 (permalink)
    Larry, this not really about round trip latency even though it is connected. 
    This is about the way the driver looks at your input and output latency and reports this to Sonar so Sonar can apply delay compensation to the newly recorded tracks. 
     
    All systems have latency in and out which added together we call Round Trip Latency
     
    It sort of starts with the GUI. We are looking at a note in piano view or a waveform in track view and we expect to hear the sound instantaneously as the now time scrolls past it.
    This sound has to pass through a few things before it gets to our speakers. Look at your  Audio settings in Preferences and note what Sonar  is saying your input and output latency is.
    My 6i6 shows 12ms output.  So sonar actually plays the sound 12ms early so I hear it in sync with the GUI,,, but wait, my input latency is 14ms so that would put the new track down 14ms late,,, but Sonar is smart enough to use that input figure and puts my new track 14ms back so it's now in perfect sync. 
     
    This is why the loop back test, it proves everything is working the way it should... if it isn't you can adjust the manual offset,,, or my self I would buy a new interface.  
     

    Johnny V  
    Cakelab  
    Focusrite 6i61st - Tascam us1641. 
    3 Desktops and 3 Laptops W7 and W10
     http://www.cactusmusic.ca/
     
     
    #11
    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: The importance of the Loopback test and using Sonar 2016/10/23 03:45:45 (permalink)
    I agree, everyone should loop test the interface when it is installed for the first time.
     
    You should check alignment / offset in samples at different ASIO buffer sizes to see if it is the same (which it was in my case, i.e. this must be the interface's internal buffer size which is apparently not included in the reported ASIO RTL) and define the proper settings to compensate in Sonar, see below
     
    I did it for the new MOTU AVB series a few weeks ago: http://forum.cakewalk.com/FindPost/3466624
     
    Here's what I found:
     
    While my Roland interfaces were always spot on (i.e. did not require a manual offset), I had to apply +82 samples offset (@96kHz) to obtain proper alignment.
     
    The required offset seems to be constant across different ASIO buffer settings, so it is fine to define once and leave it (see "Sonar Preferences / Sync and Caching / Manual Offset" at bottom of tab, set to +82, keep "Use ASIO Reported Latency" checked")
     
    However, there is one potential pitfall: If you change the number of channels on the AVB to be sent from/to the computer, the interface name in Sonar changes (as it contains the number of I/O in the name). Hence, you will have to remember to redefine this in case you change the AVB to use more/fewer channels.
     
     
    I also recommend to loop test your MIDI devices to know what you got as MIDI latency / jitter can be bigger than audio latency if you use one of today's top audio interfaces.

    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) 
    #12
    Cactus Music
    Max Output Level: 0 dBFS
    • Total Posts : 8424
    • Joined: 2004/02/09 21:34:04
    • Status: offline
    Re: The importance of the Loopback test and using Sonar 2016/10/23 12:55:35 (permalink)
    A MIDI loopback test? Hmm, 
    If your talking about the triggering of outboard midi gear I guess that would be easy to test, 
    Just patch it back and record the audio and see if that lines up. 
     
    but a midi out to midi in,  that's impossible as most people are using a USB midi input. And the controller uses it's own driver, not the audio driver. 
    But I assume an interfaces midi output is controlled by the interfaces driver. 

    Johnny V  
    Cakelab  
    Focusrite 6i61st - Tascam us1641. 
    3 Desktops and 3 Laptops W7 and W10
     http://www.cactusmusic.ca/
     
     
    #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: The importance of the Loopback test and using Sonar 2016/10/24 02:20:40 (permalink)
    Cactus Music
    A MIDI loopback test? Hmm, 
    If your talking about the triggering of outboard midi gear I guess that would be easy to test, 
    Just patch it back and record the audio and see if that lines up. 
     
    but a midi out to midi in,  that's impossible as most people are using a USB midi input. And the controller uses it's own driver, not the audio driver. 
    But I assume an interfaces midi output is controlled by the interfaces driver. 




    I was, of course, talking about physical MIDI OUT to MIDI IN connections using a cable (like in your audio loopback test) ... you can do that for any MIDI interface or USB+MIDI interface that has MIDI OUT and MIDI IN jacks (which applies to many consumer and prosumer audio+MIDI interface combos) and get an idea of your MIDI performance (and you might be surprised by how far it may be off the audio), see here: http://forum.cakewalk.com/MIDI-latency-and-jitter-for-Sonar-and-various-MIDI-devices-m3462210.aspx#3462210
     

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