Re-track External Insert question [Solved]

Author
micv
Max Output Level: -85 dBFS
  • Total Posts : 285
  • Joined: 2004/10/29 15:47:03
  • Status: offline
2016/10/28 12:33:22 (permalink)

Re-track External Insert question [Solved]

I use External Insert to send/return a track to hardware EQ-Compressor, etc.  Everything is played in sync.  Now I try to record that by create a new track with the input set to the same port as the return port of the the External Insert.  What I observed on the Track View is the new re-recorded clip is recorded much earlier than the original clip.  I would estimate 4000 samples early (buffer set at 512, 48k sampling). 
Couldn't make sense out of this yet.  I'd thought that the re-recorded clip would be in sync as latency was compensated by the External Insert, or come in after the source signal by x latency factor.  But before, how is that even possible?
post edited by micv - 2016/11/04 17:01:45
#1

14 Replies Related Threads

    brundlefly
    Max Output Level: 0 dBFS
    • Total Posts : 14250
    • Joined: 2007/09/14 14:57:59
    • Location: Manitou Spgs, Colorado
    • Status: offline
    Re: Re-track External Insert question 2016/10/28 13:20:56 (permalink)
    The real-time delay compensation for an External Insert is done by delaying the playback of other tracks to match the delayed signal returning from the external hardware. This delay compensation works just like Plugin Delay Compensation for plugins working inside the box.
     
    When you record with PDC active, the signal is usually from a direct-monitored live performance that's expected to be in sync with the delayed ouput (including the metronome click), and will be compensated for that. The delay for the signal returning from the external hardware to another input has already been compensated by PDC, but SONAR doesn't 'know' that so the recorded audio will end up being over-compensated. But I think you must be mistaken about that 4000-sample discrepancy at a buffer of 512, unless maybe the external hardware is digital, and is introducing a lot of A/D/A conversion and DSP latency on top of the DAW interface latency.
     
    In any case. the bottom line is that to render processed output of an EI with proper compensation, you need to do a real-time bounce (i.e. Fast Bounce disabled) to another track, and then bypass the EI and mute/archive the original track.

    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
    #2
    micv
    Max Output Level: -85 dBFS
    • Total Posts : 285
    • Joined: 2004/10/29 15:47:03
    • Status: offline
    Re: Re-track External Insert question 2016/10/28 14:31:04 (permalink)
    Would I achieve the same result if instead of using EI, send the track output to a soundcard 'out' port and the re-record track' input is set to the soundcard 'in' port.  That would eliminate the EI PDC and should be just like normal tracking, and latency is just ASIO and is handled automatically, right?  If that's the case then I have to re-think why using EI at all.
    #3
    Razorwit
    Max Output Level: -66 dBFS
    • Total Posts : 1235
    • Joined: 2003/11/05 18:39:32
    • Location: SLC, UT
    • Status: offline
    Re: Re-track External Insert question 2016/10/28 17:36:02 (permalink)
    Hi micv,
    Hmm...something seems funny here. If you designate a port as a return port in EI, Sonar shouldn't let you choose that input port as a source for other tracks....at least that's how it works here. So for example, if I set input 67 as a return in EI, I cannot then use input 67 as a source for an audio track.
     
    That aside, the way to do this is probably either with Bounce, Freeze, or by routing the output of the track with EI to an aux and recording the aux. You'll get the same result as recording a hardware input and won't (or shouldn't) run into strange PDC behavior.
     
    As far as routing to a hardware out and recording back in, delay compensation can't account for that because Sonar has no way of knowing that you're setting up a round trip through your A/D and a piece of hardware and then back in. That's the situation that EI is intended to fix.

    Dean

    Intel Core i7; 32GB RAM; Win10 Pro x64;RME HDSPe MADI FX; Orion 32 and Lynx Aurora 16; Mics and other stuff...
    #4
    brundlefly
    Max Output Level: 0 dBFS
    • Total Posts : 14250
    • Joined: 2007/09/14 14:57:59
    • Location: Manitou Spgs, Colorado
    • Status: offline
    Re: Re-track External Insert question 2016/10/28 19:19:35 (permalink)
    Hmmm.... yeah, good point about re-using the return input. Actually, I've noticed SONAR will let you choose the mono sides of a stereo input pair that the EI is using, which is a little odd.
     
    But mainly I wanted to note that recording to an Aux track will give the opposite problem: the return is under-compensated.
     
    Non-fast Freeze or Bounce are really the only viable options. I had forgotten that Freeze had a Non-Fast option; thanks for reminding me.

    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
    #5
    Razorwit
    Max Output Level: -66 dBFS
    • Total Posts : 1235
    • Joined: 2003/11/05 18:39:32
    • Location: SLC, UT
    • Status: offline
    Re: Re-track External Insert question 2016/10/28 19:53:08 (permalink)
    Hunh....yeah Brundle, you're right. I just tried to record from a track with EI on it to an aux and the resultant track was delayed. I would have thought that PDC would handle a track with EI on it in the same way it handles any other plugin. Thanks for pointing that out.
     
    OP - Yep, just freeze or bounce.
     
    Dean

    Intel Core i7; 32GB RAM; Win10 Pro x64;RME HDSPe MADI FX; Orion 32 and Lynx Aurora 16; Mics and other stuff...
    #6
    micv
    Max Output Level: -85 dBFS
    • Total Posts : 285
    • Joined: 2004/10/29 15:47:03
    • Status: offline
    Re: Re-track External Insert question 2016/10/29 11:56:29 (permalink)
    Thanks for the valuable info guys.
    I have a Lynx Hilo usb that allows its 4 internal USB ports to map to any of its analog in/out.  So for example I route "usb play" to al 4 ports, the IE uses one and yes that port will not be visible to select but there are other 3 ports that were routed to the same source. But as you have pointed out record with IE just won't work no matter what.
    Routing track to DA-HW-AD works for me though as I believe that all those ports visible to Sonar are asio so Sonar was able to compensate for the round trip delay.  Yes there might be some additional delay from the outboard gears but they are all analog so latency should be negligible.  I will run some more test just to be thorough but a quick test shows that everything lined up.
    #7
    micv
    Max Output Level: -85 dBFS
    • Total Posts : 285
    • Joined: 2004/10/29 15:47:03
    • Status: offline
    Re: Re-track External Insert question 2016/11/02 12:41:15 (permalink)
    I spent the last couple evening looking into this carefully.  What I stated earlier about the re-track by routing to port is wrong.  By using a test signal, I was able to measure that at 48k, 512 samples buffer, the re-track was recorded late by 155 samples.  If I add this value to the Asio Manual Offset, the re-track synced up perfectly.
    Now I just need to understand what I've observed.
    #8
    brundlefly
    Max Output Level: 0 dBFS
    • Total Posts : 14250
    • Joined: 2007/09/14 14:57:59
    • Location: Manitou Spgs, Colorado
    • Status: offline
    Re: Re-track External Insert question 2016/11/02 13:30:53 (permalink)
    Yes, you need to have your record latency compensation dialed in before complicating the picture with External Insert. I should have mentioned it but didn't because you were talking about errors of 4000 samples, and Manual Offset is usually on the order of 20-50 samples.
     
    It sounds like you are now compensating for the some EI delay with Manual Offset, which you don't want to do, because Manual Offset will apply to compensation of 'normal' recordings, and they will end up over-compensated.
     
    To set Manual Offset, use a tool like the free CEntrance Latency Tester to measure actual round trip latency, subtract whatever is reported in for Total Round-Trip in Preferences > Audio > Driver Settings (usually smaller), and enter that difference (usually positive) as the Manual Offset.
     
    You can also measure the actual round trip using EI with nothing in the loopback path, and add one buffer to that number. It should come out the same as CEntrance.
     
    Manual Offset should be fixed regardless of buffer size so you shouldn't have to touch it again.

    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
    micv
    Max Output Level: -85 dBFS
    • Total Posts : 285
    • Joined: 2004/10/29 15:47:03
    • Status: offline
    Re: Re-track External Insert question 2016/11/02 17:27:06 (permalink)
    brundlefly
    It sounds like you are now compensating for the some EI delay with Manual Offset, which you don't want to do, because Manual Offset will apply to compensation of 'normal' recordings, and they will end up over-compensated.

    Not sure about this.  I removed all instances of EI in Sonar and ran test on basically a hardware loopback (In connects to Out).  Nothing but a source track and a record track, so EI shouldn't be in the equation.  Since the Hilo has addition buffer settings (standard. low, etc.) I suspect that it has something to do with the high number.  I can collect more data on different settings.
     
    brundlefly
    To set Manual Offset, use a tool like the free CEntrance Latency Tester to measure actual round trip latency, subtract whatever is reported in for Total Round-Trip in Preferences > Audio > Driver Settings (usually smaller), and enter that difference (usually positive) as the Manual Offset.
    You can also measure the actual round trip using EI with nothing in the loopback path, and add one buffer to that number. It should come out the same as CEntrance.

    I did this and confirm that EI's report is one buffer less than CEntrance.
     
    brundlefly
    Manual Offset should be fixed regardless of buffer size so you shouldn't have to touch it again.

    I need to run more test at different buffer but so far at 256 and 512 buffer the Offset is the same, but at 128, the offset is -102.  Just when I thought I got this figured out!!! 
     
    A question I have is Is the reported asio latency in Sonar came from the soundcard driver? if so is the below correct?:
    CEntrance = HW + asio/usb driver latency.
    Sonar reported asio = asio/usb driver +  sonar input-output buffer latency
    then
    CE - Sonar = HW + sonar input-output buffer
    #10
    brundlefly
    Max Output Level: 0 dBFS
    • Total Posts : 14250
    • Joined: 2007/09/14 14:57:59
    • Location: Manitou Spgs, Colorado
    • Status: offline
    Re: Re-track External Insert question 2016/11/02 19:30:11 (permalink)
    SONAR doesn't really have a buffer of its own. The ASIO buffer is set in the driver/firmware of the interface via the ASIO control panel, and SONAR uses that value to read/write from/to the driver.
     
    The total roundtrip shown in SONAR is whatever the interface driver reports. It's not uncommon for the driver to omit some or all of the hardware latency (i.e. D/A/D conversion time and USB/FW/PCIe bus latency). CEntrance and External Insert are actually 'pinging' the loop and measuring the elapsed time so they pick up all the HW latencies.
     
    I don't know why the EI reports a value that's one buffer short, but it does work correctly in real time, and when bouncing/freezing.

    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
    #11
    mudgel
    Max Output Level: 0 dBFS
    • Total Posts : 12010
    • Joined: 2004/08/13 00:56:05
    • Location: Linton Victoria (Near Ballarat)
    • Status: offline
    Re: Re-track External Insert question 2016/11/02 23:50:51 (permalink)
    I've just left a link to the online documentation regarding External Inserts. The manual explains it much better than I can.

    http://www.cakewalk.com/D...mp;help=Mixing.33.html

    Hope it helps.

    Mike V. (MUDGEL)

    STUDIO: Win 10 Pro x64, SPlat & CbB x64,
    PC: ASUS Z370-A, INTEL i7 8700k, 32GIG DDR4 2400, OC 4.7Ghz.
    Storage: 7 TB SATA III, 750GiG SSD & Samsung 500 Gig 960 EVO NVMe M.2.
    Monitors: Adam A7X, JBL 10” Sub.
    Audio I/O & DSP Server: DIGIGRID IOS & IOX.
    Screen: Raven MTi + 43" HD 4K TV Monitor.
    Keyboard Controller: Native Instruments Komplete Kontrol S88.
    #12
    micv
    Max Output Level: -85 dBFS
    • Total Posts : 285
    • Joined: 2004/10/29 15:47:03
    • Status: offline
    Re: Re-track External Insert question 2016/11/03 10:47:15 (permalink)
    Last night I used CEntrance to measure all buffer settings that I normally use for tracking.  The 'other' buffer setting in my Hilo is 'USB Steaming Buffer". 
     
    For my setup, taking CEntrance number - Sonar asio = 154 (+/- 1 sample) consistently.
     
    The -102 offset condition I mentioned earlier was at a setting (asio and usb combination) that the HiLo doesn't recommend, although it's an accurate offset, so for practical purpose I'll not use this setting.
     
    In summary I've confirmed that:
    - The un-reported HW latency is a constant value at any asio/usb buffer.
    - Sonar asio reports correctly the latency it received from the HW.
     
    I've never thought that I need to 'calibrate' the HW as per the documentation said it should be very small or perfect. So all this times I have tracked with this latency.  This exercise leads me to think otherwise.  I think that measuring your HW latency is a must regardless.  CEntrance really makes this measurement easy and accurate.
     
    @ mudgel - thx, I've read that page many times.
     
    #13
    brundlefly
    Max Output Level: 0 dBFS
    • Total Posts : 14250
    • Joined: 2007/09/14 14:57:59
    • Location: Manitou Spgs, Colorado
    • Status: offline
    Re: Re-track External Insert question 2016/11/03 13:15:34 (permalink)
    My recent experience is mostly with PCI(e) interfaces which I like for the very low bus latency. My old E-Mu 1820m required only a 22-sample offset. The MOTU I run now requires 44 because the driver under-reports more, but it has a lower net hardware latency than the 1820m. It adds only 89 samples total to the I/O buffer latency, and that 44-sample offset is all converter latency. It goes away if I use digital I/O.
     
    USB interfaces are all over the map in this regard, but I think Lynx are pretty good.
     
    Glad to hear you got it all sorted in any case.

    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
    #14
    micv
    Max Output Level: -85 dBFS
    • Total Posts : 285
    • Joined: 2004/10/29 15:47:03
    • Status: offline
    Re: Re-track External Insert question 2016/11/04 17:12:41 (permalink)
    One more thing.  Once you have set the asio manual offset, in addition to bounce and freeze, you can record a track with EI by set the In of the new track to the same port as the EI' return (if your HW has mixer that allows the route).  The recorded clip would just lined up perfectly.
     
    #15
    Jump to:
    © 2025 APG vNext Commercial Version 5.1