WTF, what's with my timing?: SOLVED

Page: < 12345.. > >> Showing page 3 of 9
Author
ru
Max Output Level: -79 dBFS
  • Total Posts : 555
  • Joined: 2007/09/18 14:31:36
  • Status: offline
RE: WTF, what's with my timing?: SOLVED 2008/02/15 00:40:08 (permalink)

ORIGINAL: Jose7822

With ASIO, on the other hand, you can open your audio interface's Control Panel from the Audio dialog window in Sonar by clicking the "ASIO Panel" button


this is what i referred to as sonar's asio box. sorry for the misunderstanding.

#61
shawnbulen
Max Output Level: -87 dBFS
  • Total Posts : 157
  • Joined: 2006/02/11 20:51:07
  • Status: offline
RE: WTF, what's with my timing?: SOLVED 2008/02/15 00:59:31 (permalink)

I FOUND Mr PEABODY'S & SHERMAN'S WAYBACK MACHINE FROM THE ROCKY & BULLWINKLE SHOW!!!!

I just did the loopback test as described by Jose above, and my recorded signal was 7 samples EARLIER than (to the "left" of...) the source signal.

I have a brand new audio card, I haven't used it much yet. Edirol UA-101, USB 2.0 interface, on my dual-core pentium XP PC.

I had to get a new card because my ancient card, my trusty old Gina 20 (among Echo's first sold, I'm sure...) finally gave up the ghost. (I think years of moving things around busted up some connections between the fat breakout box cable & the PCI card. Sometimes, moving the breakout box would fix issues; sometimes it made my PC reboot...)

My Gina20 was very solid, no clicks or anything, but latency was HORRIBLE, easily 1/2 second or more... I'm hoping my Wayback Machine will resolve that issue...

#62
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/15 01:16:50 (permalink)
ORIGINAL: Jose7822

I still don't understand that set column though, can you explain? Maybe this is something your interface does differently than mine?




Nevermind, I figured it out. That sure is an odd way to change latency. I'll let you know if I find an answer for you concerning your results.


Take care!
post edited by Jose7822 - 2008/02/15 01:44:59
#63
ru
Max Output Level: -79 dBFS
  • Total Posts : 555
  • Joined: 2007/09/18 14:31:36
  • Status: offline
RE: WTF, what's with my timing?: SOLVED 2008/02/15 01:30:37 (permalink)
by 'set' i just meant the asio latency in ms. i was trying to save space on the graph...not realizing it was causing more trouble than it was worth :D

using the basic procedure you've outlined, i had 182 - 159 - 88 = -65.

so this won't affect older projects? only how accurately a track is recorded, not played back?

about my results...don't bother with them. i think i was getting false readings, since they were usually reflecting the designated latency. that is, if i had it set to 2 ms, i got a too-perfect reading of 88. i had the monitors off, so didn't realize the signal level was too high. i've rechecked a few, and the i/o buffer size settings aren't making a difference.
all is as it should be (as far as i know, anyway).

thanks for your help
post edited by ru - 2008/02/15 02:00:29
#64
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/15 01:50:01 (permalink)
ORIGINAL: ru

no...by 'set' i just meant the asio latency in ms. i was trying to save space on the graph...not realizing it was causing more trouble than it was worth :D


Yes you did, specially since you already had the ms numbers in there. My head is spinning because of you .

I can't figure out why you got those results, although I doubt they affect anything other than the disk activity. I'll give it a try tomorrow to see what I come up with .


using the basic procedure you've outlined, i had 182 - 159 - 88 = -65.


There's something wrong with your roundtrip latency, unless your audio interface is actually moving the recorded audio data back to automatically compensate for latency (in which case this would be correct). Man, there's so many variables.


so this won't affect older projects? only how accurately a track is recorded, not played back?



No, this will not affect older projects. It only affects recorded data.
post edited by Jose7822 - 2008/02/15 02:10:20
#65
ru
Max Output Level: -79 dBFS
  • Total Posts : 555
  • Joined: 2007/09/18 14:31:36
  • Status: offline
RE: WTF, what's with my timing?: SOLVED 2008/02/15 02:00:10 (permalink)
ORIGINAL: Jose7822

There's something wrong with your roundtrip latency. 182 samples is too low for it to be it, plus it doesn't account for the time it takes to process the data in the converters.



i was wondering about that. if the latency is set at 2 ms/88 samples, then an ideal round trip would be 176, right?
hard to believe my system could be anywhere near that efficient.
what do you think it could be?

edit:

unless your audio interface is actually moving the recorded audio data back to automatically compensate for latency


never heard of an emu doing that.
post edited by ru - 2008/02/15 02:18:27
#66
jim y
Max Output Level: -76 dBFS
  • Total Posts : 721
  • Joined: 2003/11/08 13:16:43
  • Location: The Middle of Wales.
  • Status: offline
RE: WTF, what's with my timing?: SOLVED 2008/02/15 10:59:29 (permalink)
I think there are 2 kinds of "hidden" latency, and they have different implications with respect to timing error.

A, The amount of fixed buffering (soundcard DSP, converters etc). These are always the same size in samples, and therefore introduce less timing error at a high sample rate than they do at a lower one.

B. The "real" amount of user adjustable buffering. Some drivers double-buffer. This may not be so noticable at 64 samples set and 128 "real", but is really bad at 512 set and 1024 "real". This therefore introduces higher offset error when the latency buffer is increased.



Yes, I know it's upside down.
#67
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/15 11:20:17 (permalink)

ORIGINAL: ru

if the latency is set at 2 ms/88 samples, then an ideal round trip would be 176, right?
hard to believe my system could be anywhere near that efficient.
what do you think it could be?


Actually it should be more than that. You're missing the latency of the signal passing through the converters which is typically something in the order of 3ms or ~132 samples (and that's without taking into account hidden buffers). So that brings you up to 308 samples or 7 ms which sounds more reasonable.

Honestly, I have no clue what's going on though. But there's something odd going on (unless I'm missing something).



Original: Jose7822

unless your audio interface is actually moving the recorded audio data back to automatically compensate for latency


Original: ru

never heard of an emu doing that.



I know, I made that up . Like I said, I'm not sure what's going on. I wish I had 10 different interfaces to test this on but I don't, it's just me and my FF400. Otherwise, I would've been able to help you.

What I'd do if I were you though, is to try the formula out just the way you did earlier when you got -65. Input that exact number into the Manual Offset box and then perform the second latency test (the one that applies to both WDM and ASIO) to verify that you have the correct offset amount. Give that a try and report back. Hopefully it'll work.


Good luck!
#68
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/15 11:31:02 (permalink)
ORIGINAL: jim y

I think there are 2 kinds of "hidden" latency, and they have different implications with respect to timing error.

A, The amount of fixed buffering (soundcard DSP, converters etc). These are always the same size in samples, and therefore introduce less timing error at a high sample rate than they do at a lower one.

B. The "real" amount of user adjustable buffering. Some drivers double-buffer. This may not be so noticable at 64 samples set and 128 "real", but is really bad at 512 set and 1024 "real". This therefore introduces higher offset error when the latency buffer is increased.






Interesting, that totally makes sense. I just learned through this experiment that mine is the type A kind where there's a fixed amount of buffers regardless of the latency and possibly the sampling rate (I've only tested 44.1 KHz and 48 KHz but not higher). The question is, shouldn't CEntrance be able to detect the "real" latency amount of those drivers that double-buffer? Like in Ru's case, he's results don't seems to show the whole truth with CEntrance. Also, how come some audio interfaces appear to be moving audio back in time (where the recorded audio is to the left of the reference track)? I hope you can answer these questions for me.


Take care!



post edited by Jose7822 - 2008/02/15 11:32:57
#69
vanceen
Max Output Level: -74 dBFS
  • Total Posts : 814
  • Joined: 2003/11/08 08:55:56
  • Status: offline
RE: WTF, what's with my timing?: SOLVED 2008/02/15 12:03:11 (permalink)
I just went through this with my Delta 1010. I got a 72 sample offset. Now it lines up perfectly, whatever the latency setting.

Just for anyone else who may try this with a Delta 1010, I found that I had to invert the phase of the input to get the waves to match up. Otherwise, the phase gets reversed on the "second" recorded track, and comparing the timings is a bit trickier.

Another thing I found interesting is that the samples, even when lined up perfectly, show small but definite differences. I guess this shouldn't be surprising, as the D/A - A/D process can't be perfect. I wonder if the differences would be smaller with a Lynx or an RME?

SONAR Platinum
Windows 10
ASUS X99E WE
Core i7 5960X  
32 GB Corsair DDR4 2133 C13
Fireface UFX USB driver 1.098
GeForce GTX 950
#70
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?: SOLVED 2008/02/15 12:14:07 (permalink)
ORIGINAL: vanceen
Another thing I found interesting is that the samples, even when lined up perfectly, show small but definite differences. I guess this shouldn't be surprising, as the D/A - A/D process can't be perfect. I wonder if the differences would be smaller with a Lynx or an RME?

Well done... that means you are really digging into it! That's right, they can't be perfect, because they did make the transition through analog (and most likely, some small degree of analog filtering on the way out and on the way back in) that adds up to som non-interger sample delay.

Except for a very special set of filter types (e.g. Bessel, Gabor, and phase-equalized types), the delay will be slightly different at different frequencies as well. But that effect is more secondary, and should only occur at the band edge anyway. I hear that the Lynx (for example) has very high-quality converter design, and so it may feature one of those special filter types in its analog section as well (they are more expensive to make while at the same time keeping a sharp rolloff characteristic). But even so, it would be unlikely that those analog sections would be designed to produce an exact integer sample of delay.

Psalm 30:12
All pure waves converge at the Origin
#71
smashaudio
Max Output Level: -90 dBFS
  • Total Posts : 25
  • Joined: 2007/09/19 13:35:53
  • Status: offline
RE: WTF, what's with my timing?: SOLVED 2008/02/15 12:41:29 (permalink)
Loopback test revealed 111 samples needed for the offset. ASIO recorded sample looked much closer to the original than WDM! RME FF800.
#72
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/15 13:54:50 (permalink)

ORIGINAL: smashaudio

Loopback test revealed 111 samples needed for the offset. ASIO recorded sample looked much closer to the original than WDM! RME FF800.



Thank you! You have confirmed what I've been saying in this forum about the differences between WDM and ASIO drivers in the Fireface. I recently made a comment about this here: http://forum.cakewalk.com/fb.asp?m=1303755 (post #50).


@ Vanceen,

To answer your question, even with the FF400 and ASIO drivers there's still very tiny differences between the original and the recorded file. Like Losguy said, this is expected since the signal is going through the converting process (D/A, A/D). But I wouldn't loose sleep over it. The differences between the two is WAY too small.


Take care!
#73
ru
Max Output Level: -79 dBFS
  • Total Posts : 555
  • Joined: 2007/09/18 14:31:36
  • Status: offline
RE: WTF, what's with my timing?: SOLVED 2008/02/15 14:24:15 (permalink)
OK - i did the old fashioned loopback test...got a difference of 24 samples, adjusted accordingly, and the resulting recording aligns perfectly with the original.
so here's the deal with the centrance thing (i think)...take its readout:
Measurement results: 183 samples / 4.15 ms,
and subtract the asio reported latency: 159
which gives me the offset of: 24

at least it works out in my case :/
#74
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/15 17:32:58 (permalink)
Ru,

I'm still not getting what's going on here. Why is CEntrance reporting such a low roundtrip latency in your case? A roundtrip latency at 88 buffers gives you 176 samples and your reading says 183 which is only 7 samples more. That's without adding D/A and A/D conversion into the equation, so what's going on? The only reason I can think of is that you're doing the loopback test through the E-Mu software mixer without a cable. Otherwise, I'm lost . Can anyone shed some light here?


Thanks!
#75
Beagle
Max Output Level: 0 dBFS
  • Total Posts : 50621
  • Joined: 2006/03/29 11:03:12
  • Location: Fort Worth, TX
  • Status: offline
RE: WTF, what's with my timing?: SOLVED 2008/02/15 18:34:24 (permalink)
Ok, I just performed the procedure as outlined by Jose (thank you Jose). but my problem is that when I select my Buffer Size/Latency on the panel of the CEntrance GUI, it will only let me select the lowest setting that my sound card will do (Delta 44) which is 64. my system will not run at that low of a setting without stuttering and popping - I have to set it at 384 as the lowest. why can't I select anything other than the lowest setting in CEntrance?

http://soundcloud.com/beaglesound/sets/featured-songs-1
i7, 16G DDR3, Win10x64, MOTU Ultralite Hybrid MK3
Yamaha MOXF6, Hammond XK3c, other stuff.
#76
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/15 19:09:23 (permalink)
Beagle,

It seems that CEntrance will only let you use the current latency buffer that your audio interface is set to. It should automatically bring up your ASIO Panel as soon as you Run it though, so you can make changes there. But then again, the results should be the same regardless of the latency tested as long as it's the same shown in Sonar.

Try this:

- Don't open Sonar and run the latency test at 64 samples with CEntrance.

- Now open Sonar and navigate to Options::Audio::Advanced Tab. It should give you the correct ASIO Reported Latency.

- Follow the formula on the latency test.

- Make sure you have sample accurate recording by performing the second latency test (the one for WDM and ASIO).


Let me know if you're still having problems.


HTH



post edited by Jose7822 - 2008/02/15 19:29:34
#77
mark s
Max Output Level: -68 dBFS
  • Total Posts : 1140
  • Joined: 2004/01/20 22:08:41
  • Location: Kansas City, Missouri
  • Status: offline
RE: WTF, what's with my timing?: SOLVED 2008/02/15 22:28:26 (permalink)
Wow Jose:

you get my vote for most useful (and helpful) thread of the last month. I know what I'm doing tomorrow! Thanks!
#78
ru
Max Output Level: -79 dBFS
  • Total Posts : 555
  • Joined: 2007/09/18 14:31:36
  • Status: offline
RE: WTF, what's with my timing?: SOLVED 2008/02/15 23:58:24 (permalink)
i am using a cable. the same thought crossed my mind, that centrance was measuring the internal routing of patchmix. but the 'old fashioned' loopback test variance combined with the asio reported latency gets the same number.
sorry if i'm missing some technical aspect here.
#79
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/16 02:19:52 (permalink)
Ru,

Don't worry about it. At least you got the right setting for you which is what's important. We tried .


Take care!
#80
Desperate Dan
Max Output Level: -59.5 dBFS
  • Total Posts : 1554
  • Joined: 2003/11/08 12:56:17
  • Location: Lysithea
  • Status: offline
RE: WTF, what's with my timing?: SOLVED 2008/02/16 06:14:25 (permalink)
Hi Jose

I Have just downloaded the Latency Checker for My Fireface 800, I connected the SPDIF out to the SPDIF in and got a Total Latency of 581 Samples ? Is that correct ? I know my PC is a bit old now but I was expecting better. The Number of Samples setup in my Fireface were 256, If I lowered it to 128 I just get crackles and Pops.

Windows 7 Professional  64 bit - Intel Q-9550 2.83 CPU, 8Gb DDR800, Gigabyte EP35-DS3R, M-Audio Delta 44, Yamaha HS-80M Monitors, UAD-1 Ultra Pack

I'm reading a book about anti-gravity at the moment and I just can't put it down
#81
Beagle
Max Output Level: 0 dBFS
  • Total Posts : 50621
  • Joined: 2006/03/29 11:03:12
  • Location: Fort Worth, TX
  • Status: offline
RE: WTF, what's with my timing?: SOLVED 2008/02/16 08:52:34 (permalink)
I think I got it now, thanks, Jose'!

http://soundcloud.com/beaglesound/sets/featured-songs-1
i7, 16G DDR3, Win10x64, MOTU Ultralite Hybrid MK3
Yamaha MOXF6, Hammond XK3c, other stuff.
#82
jim y
Max Output Level: -76 dBFS
  • Total Posts : 721
  • Joined: 2003/11/08 13:16:43
  • Location: The Middle of Wales.
  • Status: offline
RE: WTF, what's with my timing?: SOLVED 2008/02/16 09:05:34 (permalink)
I think some drivers won't let another app change the ASIO buffer settings, which might explain when CEntrance won't do it. M-audio Delta cannot, I'm pretty sure, allow it and it usually crashes if you try. You have to close the app, change the buffer and re-open.

Jim

PS, It's interesting how a click wave looks when it's gone around the loop. There will be some analogue delay because the analog circuits and cable cannot switch that fast - this is really a measure of transient response or "rise time" and something most soundcard testers/reviewers don't test for. I did my settings with a loop round through my mixer - because I'm too lazy to change cables and all I had to do was switch the playback channel to the record bus. Anyway, that really slowed the click, but If I'm within a ms or 2 of "sample-accurate", it's close enough.

PPS, The Delta 1010 inputs have a hardware design fault - input phase is inverted depending on whether you switch to 10dBv or 4dBU levels. I don't have one, but think it's the 10 setting that's inverted. M-audio added a phase switch in the control panel as a workaround.


Yes, I know it's upside down.
#83
ru
Max Output Level: -79 dBFS
  • Total Posts : 555
  • Joined: 2007/09/18 14:31:36
  • Status: offline
RE: WTF, what's with my timing?: SOLVED 2008/02/16 11:32:05 (permalink)

ORIGINAL: Jose7822

Ru,

Don't worry about it. At least you got the right setting for you which is what's important. We tried .


Take care!


not worried, but intrigued.
here's something else. i did the loopback test using a novation external soundcard, got a difference of 244 samples, and the offset adjustment made no difference. the new track was misaligned by the exact same number of samples. :?
#84
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/16 12:04:51 (permalink)

ORIGINAL: Desperate Dan

Hi Jose

I Have just downloaded the Latency Checker for My Fireface 800, I connected the SPDIF out to the SPDIF in and got a Total Latency of 581 Samples ? Is that correct ? I know my PC is a bit old now but I was expecting better. The Number of Samples setup in my Fireface were 256, If I lowered it to 128 I just get crackles and Pops.



Hey Dan,

I haven't done this through SPDIF but your roundtrip latency measurement of 581 samples sounds correct to me. Mine was 655 through the analog I/O (it's higher because of the conversion). But, in your case, since there's no A/D conversion the results is a lower measurement. You have your I/O buffers or 256 * 2 = 512; And then you take 581 - 512 = 69 samples (~ 1.5 ms) which are probably hidden buffers, so it looks right.

FYI, your computer speed has nothing to do with latency for the same buffer size. IOW, having a more powerful CPU won't lower your latency at the same buffer size.


HTH
#85
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/16 12:10:54 (permalink)

ORIGINAL: ru

not worried, but intrigued.
here's something else. i did the loopback test using a novation external soundcard, got a difference of 244 samples, and the offset adjustment made no difference. the new track was misaligned by the exact same number of samples. :?



I'm intrigued too, but I'm totally lost with you dude . I have no idea what's going on. Sorry .
#86
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/16 12:39:45 (permalink)
Dan,

I read the FF800's online manual and confirmed what I had told you before. If you wanna check it out read Chapter 37.2 on page 96:

http://www.rme-audio.de/download/fface800_e.pdf

It's all there in that chapter.


HTH
#87
stratton
Max Output Level: -62 dBFS
  • Total Posts : 1446
  • Joined: 2003/11/06 16:49:24
  • Location: San Diego
  • Status: offline
RE: WTF, what's with my timing?: SOLVED 2008/02/16 13:18:49 (permalink)
Jose, excellent work, again! Your contributions to fellow SONAR users are amazing.

Anyone using SONAR who's serious about the quality of their recordings should do some kind of latency check. It almost certainly is not doing what you think it's doing unless you've checked it.

The instructions for checking latency should be a sticky. This, along with other current technical solutions/checks (MP3 encoder, drum maps), should be given at least some bandwidth at the top of the page.
#88
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/16 13:31:56 (permalink)
Thanks Stratton,

I was actually thinking about doing something like that. Having one post with steps on how to do things like a loopback test, install LAME MP3 encoder, Tips on optimizing Sonar, change your audio latency, calibrating your speakers, etc. I might do it one day for those interested and also so that I don't have to write the same thing over and over .


Take care!
#89
bbdude
Max Output Level: -86 dBFS
  • Total Posts : 248
  • Joined: 2004/04/15 11:34:07
  • Location: Seattle, WA
  • Status: offline
RE: WTF, what's with my timing?: SOLVED 2008/02/16 19:40:33 (permalink)
Jose -- Thanks for tips on how to make this measurement. I finally got around to doing that today. I have been running my FF800 at a 44.1 KHz sample rate, with a 256 sample buffer size, which works fine most of what I do. From the Options->Audio panel, my ASIO reported latency was 301. I generated a snare track using SD2 and looped a FF800 analog output into a FF800 analog input. After making the loopback measurement, I saw that my input was coming-in 96 samples late, (ie I was 2.177 msec mis-aligned). So I inserted 96 into the manual offset. Now it's right on the money!

The only other little gotcha -- After making the manual correction, I also made the measurement using the same FF800 output looping into one of my Digimax FS inputs (which connects to my FF800 via ADAT). I see that the recorded track from the Digimax is coming-in 13 samples too early (294 usec). That's not a huge deal for timing tightness, although it could be an issue with phasing between mics conected to the separate interfaces. I wish there was a way to make this correction on a per-input basis.

Bob the bbdude

RME FF-UFX , RME FF800
DAW PC built by ADK , Core i7 3770 IVB
Sonar X3e Producer, Win 7-Pro 64-bit
#90
Page: < 12345.. > >> Showing page 3 of 9
Jump to:
© 2024 APG vNext Commercial Version 5.1