WTF, what's with my timing?: SOLVED

Page: < 12345.. > >> Showing page 5 of 9
Author
Jose7822
Max Output Level: 0 dBFS
  • Total Posts : 10031
  • Joined: 2005/11/07 18:59:54
  • Location: United States
  • Status: offline
RE: WTF, what's with my timing?: SOLVED 2008/02/28 03:21:36 (permalink)

ORIGINAL: brundlefly

Possibly, but if he has existing audio and MIDI that are both in sync with the time ruler, and new audio is being recorded out of sync with both of them, the offset won't be able to correct that. Also, he's reporting irregular timing, which needs to be understood and addressed separately.



Oh I see. In that's the case he's MIDI interface is the most logical culprit here since Sonar is aligning Audio and MIDI correctly. He should test this using another MIDI interface (if possible) just to rule Sonar out.
louieo
Max Output Level: -90 dBFS
  • Total Posts : 1
  • Joined: 2008/03/05 15:22:27
  • Status: offline
RE: WTF, what's with my timing?: SOLVED 2008/03/05 16:02:47 (permalink)
Wow.. I realized in the last few months that overdub latency in sonar was what was causing my recordings to not feel right (for years I thought it was me), and now you've revealed how to fix it. It's unforgivable that cakewalk doesn't put this front and center in their installation instructions. I can't tell you how much time this problem has wasted.
puffer
Max Output Level: -74 dBFS
  • Total Posts : 836
  • Joined: 2003/11/04 11:17:02
  • Location: Providence
  • Status: offline
RE: WTF, what's with my timing?: SOLVED 2008/03/05 20:58:45 (permalink)
Okay, I'm testing my new LynxL22 card, but I'm finding it hard to trust the results I'm getting, at least using CEntrance.

I'm running the analog out into my mixer and back out through the aux out to the Lynx. I need to figure that into the latency, correct?

When I choose the Lynx in CEntrance it pops open the ASIO control panel and when I click okay it gives me the message "The driver requested ASIO reset." And when I click through that it throws me back to the Lynx control panel. In an endless loop until I cancel. It seems to work from there. But really, the numbers it gives me don't help when I try the kick-drum test, just shift the problem around.

So using that project that I set up back in S6 to test back then. And I ran that and was able to get results that seem less all over the map.

Thanks for doing the leg work on this, man.

digitallofi.bandcamp.com
Jose7822
Max Output Level: 0 dBFS
  • Total Posts : 10031
  • Joined: 2005/11/07 18:59:54
  • Location: United States
  • Status: offline
RE: WTF, what's with my timing?: SOLVED 2008/03/05 23:44:58 (permalink)

ORIGINAL: puffer

I'm running the analog out into my mixer and back out through the aux out to the Lynx. I need to figure that into the latency, correct?



Correct! Whatever piece of hardware you have in your signal chain needs to get factored into the latency test. So if anything changes (as in you added or removed hardware from the chain) you'll need to re-calculate the latency again. If your signal chain changes regularly, it is a good idea to write down the Manual Offset (latency) for all the different configurations you use (including driver changes).

Also, if the CEntrance test doesn't work for some reason you can always perform the alternate test (the one for both ASIO and WDM).


Take care!
ttoz
Max Output Level: -82 dBFS
  • Total Posts : 417
  • Joined: 2003/11/13 23:57:58
  • Location: Melbourne, Australia
  • Status: offline
RE: WTF, what's with my timing? 2008/03/06 10:50:09 (permalink)

ORIGINAL: riojazz

Does a test for WDM exist that is equivalent to the Centrance latency test utility?



i'd like to know this too, more out of curiosity.... what true roundtrip latency i am getting with my audiophile192 under wdm


it's just that sonar's wdm performance, on my machine, with the delta, is way ahead of the asio performance, less pop click prone, and WAY less dropouts.

but i am wondering if 64 samples wdm is the same as 64 samples asio, in sonar.
brundlefly
Max Output Level: 0 dBFS
  • Total Posts : 14250
  • Joined: 2007/09/14 14:57:59
  • Location: Manitou Spgs, Colorado
  • Status: offline
RE: WTF, what's with my timing? 2008/03/06 11:37:24 (permalink)
i'd like to know this too, more out of curiosity.... what true roundtrip latency i am getting with my audiophile192 under wdm


If no one comes up with a WDM-compatible applet, you can just do the manual loopback, test: re-recording an audio track with no compensation enabled, and determining the actual round-trip latency by zooming in and finding the difference in samples between matching waveform features.

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
losguy
Max Output Level: -20 dBFS
  • Total Posts : 5506
  • Joined: 2003/12/18 13:40:44
  • Location: The Great White North (MN, USA)
  • Status: offline
RE: WTF, what's with my timing? 2008/03/06 12:23:02 (permalink)
ORIGINAL: brundlefly
If no one comes up with a WDM-compatible applet, you can just do the manual loopback, test: re-recording an audio track with no compensation enabled, and determining the actual round-trip latency by zooming in and finding the difference in samples between matching waveform features.

Yes, I prefer that method, as it measures the delay directly in SONAR, where you are then entering the correction value. Theoretically it shouldn't matter, but a separate tool adds uncertainty just in the assumptions that the other tool makes. (Of course, others may prefer the convenience that the CEntrance tool offers. If you're on ASIO, it's ultimately just a matter of preference.)

Psalm 30:12
All pure waves converge at the Origin
puffer
Max Output Level: -74 dBFS
  • Total Posts : 836
  • Joined: 2003/11/04 11:17:02
  • Location: Providence
  • Status: offline
RE: WTF, what's with my timing? 2008/03/06 13:21:14 (permalink)
Indeed I did do the manual test - I had a project set from back when this was first being discussed. Four kick beats, the time ruler set to samples.

It really is a pretty simple way of testing.

digitallofi.bandcamp.com
brundlefly
Max Output Level: 0 dBFS
  • Total Posts : 14250
  • Joined: 2007/09/14 14:57:59
  • Location: Manitou Spgs, Colorado
  • Status: offline
RE: WTF, what's with my timing? 2008/03/06 13:58:35 (permalink)
Yes, I prefer that method, as it measures the delay directly in SONAR, where you are then entering the correction value. Theoretically it shouldn't matter, but a separate tool adds uncertainty just in the assumptions that the other tool makes.


I had done a number of tests manually before getting turned on to CEntrance. CEntrance has yielded results identical to the manual method in all cases I've tested, and it does simplify the task considerably. In particular, it made it very easy to determine that I can use a fixed offset together with the ASIO Reported latency to get consistent compensation no matter what my buffer settings are with the 1820m.

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
Houndawg
Max Output Level: -75 dBFS
  • Total Posts : 759
  • Joined: 2006/10/26 18:08:33
  • Status: offline
RE: WTF, what's with my timing? 2008/03/06 14:37:45 (permalink)
+1 for the Centrance utility... works perfectly, and faster/easier than the manual method.

Although I wasn't experiencing a timing problem with my system, I performed the test, and determined I was only off by 40 samples (fantastic LynxTWO-B drivers!) which translates to just less than 1 millisecond -- no wonder I couldn't hear/feel it.

hounDAWg

LynxTWO-B/UAD-2 DUO/UAD-1
DynaudioBM5A/AlphaTrack/RD-700GX/PCR-800
ASUS P5K-E/Q6600@3.0GHz/4GB
2-WD Raptors(74/150),2-320GB(BFD2/VSTi)
2-XFX PCIe/4-17"LCD
AntecP182/NoctuaNH-C12P/CorsairTX650
Sonar8.3.1/XP/Vista32
ttoz
Max Output Level: -82 dBFS
  • Total Posts : 417
  • Joined: 2003/11/13 23:57:58
  • Location: Melbourne, Australia
  • Status: offline
RE: WTF, what's with my timing? 2008/03/06 17:49:15 (permalink)
I am wondering, I will always record my vocalist with software monitoring (as he likes a confidence reverb) and use 128 sample buffer when he records (safer than 64 and not too much latency difference)

BUT.... I guess if we are doing music that requires REALLY tight timing, we are going to get delayed audio AGAIN because of the monitoring latency? I mean he cant be 100% precise when there is 8ms roundtrip latency or whatever it was when I tested it (7 or 8. something)

????/
DeeringAmps
Max Output Level: -49 dBFS
  • Total Posts : 2614
  • Joined: 2005/10/03 10:29:25
  • Location: Seattle area
  • Status: offline
RE: WTF, what's with my timing? 2008/03/06 22:46:18 (permalink)
Here are my experiences with the Tascam FW-1884 and Echo Gina 24
WinXP 32 bit WDM Drivers 44.1 24 bit

Tascam FW-1884
set to 32 (lowest latency in the FW control panel)
Sonar set for 2 Play Back Buffers, Sonar reports latency will be 17.4 msec.

Used EZ Drummer snare and kick for the reference track (EZD snare looks about 2 samples late)

FW-1884 requires 82 samples of compensation to sync the tracks.

Gina 24 requires 135 samples of compensation.

Now some observations on the "color" added by both interfaces.

When reversing the phase of the FW-1884 recorded track the main buss show 21.2 dB of gain reduction for the summed tracks.

By comparison the Gina shows 26.9 dB of gain reduction.

A bounced copy of the original EZ Drummer track nulls perfectly to the original; no meter, no signal.

So, the Gina is more "transparent" than the FW-1884?

I know someone touched on the idea of "nulling" the tracks eariler, what are others experiencing?

BTW, I ran tracks at 1 sample more and 1 sample less to be sure that what I was seeing in the Sonar waveform was indeed what I was hearing,
and the summed signal was about 6 dB higher.

I'd be interested in what others are seeing; compensation and results of the null test.

Of course sometimes a little "color" isn't a bad thing. Most vintage and much modern gear is bought for exactly the textures they impart.

Tom Deering
Tascam FW-1884 User Resources Page
Firewire "Legacy" Tutorial, Service Manual, Schematic, and Service Bulletins

Win10x64
StudioCat Pro Studio Coffee Lake 8086k 32gb RAM

RME UFX (Audio)
Tascam FW-1884 (Control) in Win 10x64 Pro
ttoz
Max Output Level: -82 dBFS
  • Total Posts : 417
  • Joined: 2003/11/13 23:57:58
  • Location: Melbourne, Australia
  • Status: offline
RE: WTF, what's with my timing?: SOLVED 2008/03/07 05:16:57 (permalink)
OK!!! The delta audiophile 192 is EXACTLY 80 samples offset, in WDM at 128 sample buffer! Now the tracks line up PERFECTLY!

PRAISE JOSE!!!


Now, the final question.... According to Centrance, the roundtrip latency of my card, at 128 sample buffer, in ASIO mode, is a best of 7.57 ms and a worst of 7.64... pretty good!

But I still have to do some tests now to work out true roundtrip latency, at 128 samples, in WDM mode, i wish ceentrance did this!



ttoz
Max Output Level: -82 dBFS
  • Total Posts : 417
  • Joined: 2003/11/13 23:57:58
  • Location: Melbourne, Australia
  • Status: offline
RE: WTF, what's with my timing?: SOLVED 2008/03/07 05:26:47 (permalink)
Ok, what I dont get is this....... if my wdm adjustment needs to be 80 samples, does that mean, to determine my true WDM roundtrip latency, I should add 80 samples to 128, so it would be 208 x 2 = 416? so my roundtrip wdm latency would be just under 10 ms? OR, do i only need to add the 80 samples ONCE, i.e., 128 x 2, +80 = 336. That would be interesting, as 336 would be the same as the asio roundtrip as reported by ceentrance in that case.


BUT, how do we actually know there aren't hidden buffers in WDM? What I mean is, ok, the manual latency has been adjusted, right? But how do we know with realtime playback of softysnths (i.e. I am talking not when sonar itself plays them back cause then it's sample accurate, i am talking about live playing, or monitoring), how do we know there are no extra hidden buffers, when Jose once mentioned he thinks the wdm has an extra hidden buffer or something. I am a bit confused.

LAST question, let's say all is good, and the wdm roundtrip latency is truly 336 samples. My vocalist, might be performing a tight timing essential vocal (let's say a fast rap just for example), and his monitoring will be going through sonar so i can give him a confidence reverb. So he is going to have 336 samples of monitoring latency. Wouldn't THIS then need to be adjusted manually as well once recorded? Or is this what the above test has been for?

I mean, if i were to record a vocal with direct monitoring, no software reverb etc, there'd be essentially no delay so this would be recorded WITHOUT needing any value in the manual recording latency adjustment field, correct? Because we are bypassing sonar altogether here.....

I am a bit confused TBH, with cubase and asio it just always worked perfectly....however i am very happy with sonar so far, dont get me wrong, i just want to understand this completely.

ttoz
Max Output Level: -82 dBFS
  • Total Posts : 417
  • Joined: 2003/11/13 23:57:58
  • Location: Melbourne, Australia
  • Status: offline
RE: WTF, what's with my timing?: SOLVED 2008/03/07 05:44:51 (permalink)
I have some more VERY interesting results. Using the same audio file, same sample buffer of 128, on an empty project in Cubase 4, using the ASIO driver, cubase recorded everything 2 samples early, big deal,. it's not noticeable. But Cubase has a field to adjust the record latency so i put it at MINUS 2 and it lines up perfectly, although honestly, the reason i never noticed it before, is because, well... 2 samples LOL.

NOW, sonar 7.02 in ASIO mode, with the asio automatic compensation box thingie ticked, was still 165 samples out (late)!! double WDM.

SO, there is clearly something wrong with SONAR here. There is no other way to put it, it is obvious sonar has a problem in this area.. there are no variables in place, same sound card, audio file, driver etc.....

DeeringAmps
Max Output Level: -49 dBFS
  • Total Posts : 2614
  • Joined: 2005/10/03 10:29:25
  • Location: Seattle area
  • Status: offline
RE: WTF, what's with my timing?: SOLVED 2008/03/07 10:29:53 (permalink)
ttoz,
If the tracks line up with an 80 sample offset, isn't the round trip 80 samples?
It sounds like in your system the WDM driver works best, doesn't it?

I always monitor off the mixer (hardware) and "sweeten" the vocal there. However, I would think that the "delay" for the processed reverb could be viewed as "pre-delay". Just shorten the pre-delay in the preset to suit. Right?

Am I "getting" the math here?

Tom Deering
Tascam FW-1884 User Resources Page
Firewire "Legacy" Tutorial, Service Manual, Schematic, and Service Bulletins

Win10x64
StudioCat Pro Studio Coffee Lake 8086k 32gb RAM

RME UFX (Audio)
Tascam FW-1884 (Control) in Win 10x64 Pro
ttoz
Max Output Level: -82 dBFS
  • Total Posts : 417
  • Joined: 2003/11/13 23:57:58
  • Location: Melbourne, Australia
  • Status: offline
RE: WTF, what's with my timing?: SOLVED 2008/03/07 10:35:04 (permalink)

ORIGINAL: DeeringAmps

ttoz,
If the tracks line up with an 80 sample offset, isn't the round trip 80 samples?
It sounds like in your system the WDM driver works best, doesn't it?

I always monitor off the mixer (hardware) and "sweeten" the vocal there. However, I would think that the "delay" for the processed reverb could be viewed as "pre-delay". Just shorten the pre-delay in the preset to suit. Right?

Am I "getting" the math here?



The roundtrip couldn't possibly be 80 samples when at minimum the buffer is 128 each way PLUS 80 hidden is the way i understand it.
DeeringAmps
Max Output Level: -49 dBFS
  • Total Posts : 2614
  • Joined: 2005/10/03 10:29:25
  • Location: Seattle area
  • Status: offline
RE: WTF, what's with my timing?: SOLVED 2008/03/07 10:38:36 (permalink)
ttoz,
OK, maybe I need to re-read everything.
Correct me if I'm wrong.
The buffer fills, Sonar deals the results, we hear the track, lay down the overdub, Sonar moves the overdub 80 (or whatever the compensation is) and every thing lines up.
Righ?

Thanks

Tom Deering
Tascam FW-1884 User Resources Page
Firewire "Legacy" Tutorial, Service Manual, Schematic, and Service Bulletins

Win10x64
StudioCat Pro Studio Coffee Lake 8086k 32gb RAM

RME UFX (Audio)
Tascam FW-1884 (Control) in Win 10x64 Pro
dappa1
Max Output Level: -46 dBFS
  • Total Posts : 2949
  • Joined: 2007/02/26 04:18:57
  • Status: offline
RE: WTF, what's with my timing?: SOLVED 2008/03/07 11:39:53 (permalink)
fallibility. Some one mentioned that Cubase just works in asio mode. I must agree! But then again they invented the thing. Tell me when Cakewalk plan on making there own so we do not have to discuss these timing issues anymore. I agree also that there is some type of fault with Sonar in this regard. Can anyone make me it humble pie????

Cakewalk for instance.

Don't get me wrong Sonar does some good things but I am pining for Cubase at the mo!

Though I must state again that Sonar is good or just as good as any other sequencer. Better I cant say any other is better, better in some areas yes!
ttoz
Max Output Level: -82 dBFS
  • Total Posts : 417
  • Joined: 2003/11/13 23:57:58
  • Location: Melbourne, Australia
  • Status: offline
RE: WTF, what's with my timing?: SOLVED 2008/03/07 12:22:00 (permalink)
don't pine for cubase, TRUST me on that one. I was simply exploring loops before and it fatally crashed. It's really screwed in version 4.
dappa1
Max Output Level: -46 dBFS
  • Total Posts : 2949
  • Joined: 2007/02/26 04:18:57
  • Status: offline
RE: WTF, what's with my timing?: SOLVED 2008/03/07 13:17:46 (permalink)
that Roland Fantom x looks good for sequencing. I dont know I just need a good alternative that is trouble free
brundlefly
Max Output Level: 0 dBFS
  • Total Posts : 14250
  • Joined: 2007/09/14 14:57:59
  • Location: Manitou Spgs, Colorado
  • Status: offline
RE: WTF, what's with my timing?: SOLVED 2008/03/07 13:35:46 (permalink)
OR, do i only need to add the 80 samples ONCE, i.e., 128 x 2, +80 = 336. That would be interesting, as 336 would be the same as the asio roundtrip as reported by ceentrance in that case.


Maybe I missed where this was already answered, but this is correct. In addition to the buffer latency in both directions, there is D/A and A/D conversion time of about 1ms (44 samples) each way, which is where your 80-samples offset is coming from in WDM mode. In ASIO mode, most but often not all of the A/D conversion time is included in the "ASIO Reported Latency" that Sonar uses, which is why you usually need some additional offset to get perfect compensation.
post edited by brundlefly - 2008/03/07 13:36:05

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
Jose7822
Max Output Level: 0 dBFS
  • Total Posts : 10031
  • Joined: 2005/11/07 18:59:54
  • Location: United States
  • Status: offline
RE: WTF, what's with my timing?: SOLVED 2008/03/07 15:40:50 (permalink)
Ttoz,

You have asked some very good questions and I'm not sure if I'll be able to answer all of them correctly but I'll try. From my understanding, most manufacturers design their drivers with hidden or safety buffers as to ease CPU load and reduce Dropouts/artifacts at low latency settings. They might also design their drivers to report the converter's latency to the software. For example, I know RME's drivers have a fix safety buffer size of 64 samples (~1.5 ms) on the playback side only which is reported to the software (in this case Sonar) together with a A/D and D/A latency of 2 ms (~80 samples). This means that at a buffer size of 256 samples I should end up with a roundtrip latency of ~656 samples (256 * 2 + 64 + ~80 = ~656) which is pretty much what I got with CEntrance if you look at my previous posts. Of course this is easily confirmed with CEntrance but it only works for ASIO drivers not WDM. So, basically, you'd never know your true WDM's rountrip latency unless your audio interface manufacturer tells you what the latency of their hidden buffer(s) is because it might've been already compensated by Sonar. This is probably why a lot of people end up with early recordings when using WDM drivers. In conclusion, your 80 samples offset must come from the A/D and D/A conversion while everything else is being compensated by Sonar. On the other hand, if you have performed the latency test then none of this really matters because either way your system is now sample accurate since everything has been accounted for (hidden buffers and all).

Now your other question is the tricky one to answer. I know that if you monitor through Sonar everything will be automatically compensated through the manual offset, but I'm not sure what happens if you monitor directly from your interface though. This is something I would like to know as well.
Myshrunkenhead
Max Output Level: -90 dBFS
  • Total Posts : 1
  • Joined: 2008/03/07 15:40:50
  • Location: Ecuador
  • Status: offline
RE: WTF, what's with my timing?: SOLVED 2008/03/07 15:52:37 (permalink)
Thanks, this helps
post edited by Myshrunkenhead - 2008/03/07 16:48:13
brundlefly
Max Output Level: 0 dBFS
  • Total Posts : 14250
  • Joined: 2007/09/14 14:57:59
  • Location: Manitou Spgs, Colorado
  • Status: offline
RE: WTF, what's with my timing?: SOLVED 2008/03/07 17:00:46 (permalink)
LAST question, let's say all is good, and the wdm roundtrip latency is truly 336 samples. My vocalist, might be performing a tight timing essential vocal (let's say a fast rap just for example), and his monitoring will be going through sonar so i can give him a confidence reverb. So he is going to have 336 samples of monitoring latency. Wouldn't THIS then need to be adjusted manually as well once recorded? Or is this what the above test has been for?

I mean, if i were to record a vocal with direct monitoring, no software reverb etc, there'd be essentially no delay so this would be recorded WITHOUT needing any value in the manual recording latency adjustment field, correct? Because we are bypassing sonar altogether here.....


This is a really interesting question that I've been meaning to think through for a while. Here's what I've concluded:

It all depends on how much subconscious latency compensation the vocalist does himself. Think of it this way: If he/she is singing to existing audio playing back from Sonar with his own voice input-monitored, he is going to have to sing ahead of the beat by half the round-trip latency to have his vocal sound in sync with the audio in his headphones, because the audio has only made half a round-trip (out only), while his singing has made a full round-trip (in and out).

The question is will the vocalist fully compensate for this delay so that his voice sounds in sync as he sings, or is he going to sing on the beat as he hears it, and ignore the fact that this voice sounds a little late? I'm guessing that most singers are going to automatically compensate for most of the delay if it's not too great. If his compensation is perfect, Sonar is actually going to be over-compensating by half the round-trip, and the vocal will end up being placed early relative to the existing audio.

Now suppose he monitors himself (i.e. the mic's output) directly. As before he hears the audio with half the latency, and sings in sync with what he hears, but this time, there is no delay between his larynx and his ears, so to speak. Thus, he sings right on the beat of what he hears, which is late by half the latency, and his performance goes into Sonar with the other half of the round-trip latency. In this case, Sonar's compensating by a full-round-trip latency should sync the new track perfectly with the existing one.

In either case, there is no additional latency compensation to be done. If anything, the input monitored performance is going to have to be "uncompensated" by some amount to account for the singer's automatic compensation.

Incidentally, the same should apply to instrumental performances. So an argument could be made that Sonar should only compensate for half-the round-trip latency when input monitoring, because the performer will subconsciously compensate for the other half.

I think I've got this right. But I'm open to alternate opinions.

And I don't even want to contemplate how MIDI fits into this.

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
Jose7822
Max Output Level: 0 dBFS
  • Total Posts : 10031
  • Joined: 2005/11/07 18:59:54
  • Location: United States
  • Status: offline
RE: WTF, what's with my timing?: SOLVED 2008/03/07 17:59:38 (permalink)

ORIGINAL: brundlefly

The question is will the vocalist fully compensate for this delay so that his voice sounds in sync as he sings, or is he going to sing on the beat as he hears it, and ignore the fact that this voice sounds a little late? I'm guessing that most singers are going to automatically compensate for most of the delay if it's not too great. If his compensation is perfect, Sonar is actually going to be over-compensating by half the round-trip, and the vocal will end up being placed early relative to the existing audio.



That's not completely accurate, but it's close. If the singer compensates for the monitored latency then his/her recorded voice will be in "perfect" sync with the already recorded audio, not early. Remember that the roundtrip latency is already compensating for playback as well as record latency. So Sonar will move the recorded audio by the whole latency trip to compensate because both playback and record are late.

For example, if I sing into the mic (oh gosh!) while monitoring directly through hardware, my voice will already be late because the audio that's playing back is late by half the roundtrip latency. Now if I monitor myself through Sonar, my voice will have more added latency compared to the audio that's being played back through Sonar (so now it's worse). But if I compensate for it, then it will be late only compared to the audio that's in Sonar which I'm hearing at half the roundtrip latency. Meaning that if I have a sample accurate system my voice will be in sync with everything else in Sonar as it will get compensated for both playback and record. Does this make sense?

So I guess I've answered my own question here . If you monitor directly, the latency test will compensate for it as long as nothing in the signal chain changes (adding/removing hardware). The same applies if you monitor through Sonar because one would naturally compensate for the added latency as long as it's not too bad, which is why one should monitor at lower buffer sizes/latencies (as to avoid hearing the echo).


HTH
brundlefly
Max Output Level: 0 dBFS
  • Total Posts : 14250
  • Joined: 2007/09/14 14:57:59
  • Location: Manitou Spgs, Colorado
  • Status: offline
RE: WTF, what's with my timing?: SOLVED 2008/03/07 18:20:54 (permalink)
Jose, I need to think about what you've written, but in the mean time, I did a quick test that pretty much confirmed what I expected, except for one thing: Latency is not divided equally both ways. The buffer latency only applies on the outbound side, while the D/A and A/D conversion are roughly equal. This makes snese, as there's is no reason for input buffers other than what the A/D converters do.

So here's what I did:

I set up an audio track with quarter notes playing right on the beat, and upped my latency to 100ms! Turned off all latency compensation and monitoring. Listened to the playback, and recorded new MIDI and audio tracks from my keyboard, playing silently, and just focusing on hitting the keys in sync with the audio beats. This is essentially what you would have with direct monitoring. As expected, the MIDI events were pretty much right on the audio events, but my recorded audio ended up about 100ms late everywhere because it wasn't compensated either by me or by Sonar.

Now I enabled input monitoring, and repeated the test, trying to ignore the timing of my fingers, and focus on aligning the input-monitored audio with the audio playback. This was difficult with 100ms latency, but after a little practice, I got to the point where the MIDI was being recorded very early, and the audio was close to synced up - with no compensation by Sonar.

Now I enabled ASIO Reported latency, and recorded while input monitoring. As before, the MIDI was 100ms early, but now with both me and Sonar compensating for latency, the audio was also 100ms early!

So if you're re-recording existing audio via a loopback test or a live performer who is using direct monitoring, it's important to have the latency fully compensated. But if you are recording a live performer who is using input monitoring, the performer may well do most or all of the compensation for you.

Edit: Clarified the last paragraph to indicate that a direct-monitored performance needs to be fully compensated.
post edited by brundlefly - 2008/03/07 18:54:35

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
brundlefly
Max Output Level: 0 dBFS
  • Total Posts : 14250
  • Joined: 2007/09/14 14:57:59
  • Location: Manitou Spgs, Colorado
  • Status: offline
RE: WTF, what's with my timing?: SOLVED 2008/03/07 19:29:10 (permalink)
If you monitor directly, the latency test will compensate for it as long as nothing in the signal chain changes (adding/removing hardware).


I agree with this.

The same applies if you monitor through Sonar because one would naturally compensate for the added latency as long as it's not too bad, which is why one should monitor at lower buffer sizes/latencies (as to avoid hearing the echo).


This isn't right, because the performer tends to compensate not only for the added inbound latency (a relatively small portion of the total as explained in my previous post) but also for the lateness of the monitored signal relative to the playback signal that he is hearing. In other words, he plays/sings ahead of the beat so that his input-monitored signal comes out of Sonar in sync with the playback signal. Sonar has already laid that signal down at the same position as the playback signal before sending them both out together. Sonar then applies the latency compensation when recording is completed, causing the vocal to be placed too early by the full latency compensation amount.

Try the test I described in my previous post and see what you get.

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
Jose7822
Max Output Level: 0 dBFS
  • Total Posts : 10031
  • Joined: 2005/11/07 18:59:54
  • Location: United States
  • Status: offline
RE: WTF, what's with my timing?: SOLVED 2008/03/07 19:37:10 (permalink)

ORIGINAL: brundlefly

Latency is not divided equally both ways. The buffer latency only applies on the outbound side, while the D/A and A/D conversion are roughly equal. This makes snese, as there's is no reason for input buffers other than what the A/D converters do.



That's not true either. You DO have Input buffers when recording audio, so latency is equally divided (with the exception of hidden buffers). When you set up a latency of 128 samples, Sonar only reports the Output playback latency (without extra buffers or A/D conversion) but there's also an Input record latency of 128 samples with D/A converter latency as well.

Regarding your test, it would be hard to prove anything the way you're going about it since there's a lot of human error being introduced into the timing (specially since you're delaying things by 100 ms). I'm not saying you have bad timing or anything, but it's just impossible to get perfect timing this way because we're not machines and are always subject to add our own timing errors (which is what makes music human anyways). Not to mention that you're also introducing another latency factor, MIDI latency.


Take care!
Jose7822
Max Output Level: 0 dBFS
  • Total Posts : 10031
  • Joined: 2005/11/07 18:59:54
  • Location: United States
  • Status: offline
RE: WTF, what's with my timing?: SOLVED 2008/03/07 19:55:29 (permalink)
ORIGINAL: brundlefly

In other words, he plays/sings ahead of the beat so that his input-monitored signal comes out of Sonar in sync with the playback signal. Sonar has already laid that signal down at the same position as the playback signal before sending them both out together. Sonar then applies the latency compensation when recording is completed, causing the vocal to be placed too early by the full latency compensation amount.

Try the test I described in my previous post and see what you get.



I see what you're saying, BUT in your example the singer/player is overcompensating. He/She is compensating on top of what Sonar is already doing which then results in audio that's printed early. Because of this it is unrealistic to record at such high latencies which is the reason why you're getting those results. I bet that if you tested using a more realistic buffer size/latency setting that your recorded audio will be almost perfectly aligned with what's already there because now you will no longer hear an echo, and thus you won't overcompensate.


Take care!


EDITED: For clarity.
post edited by Jose7822 - 2008/03/07 22:18:54
Page: < 12345.. > >> Showing page 5 of 9
Jump to:
© 2024 APG vNext Commercial Version 5.1