Re: [LAU] Testing sync with 2 sound cards

From: Kevin Cosgrove <kevinc@email-addr-hidden>
Date: Mon Mar 03 2008 - 23:53:15 EET

On 3 March 2008 at 10:54, "Mark Knecht" <markknecht@email-addr-hidden> wrote:

> I think this sounds like a better solution. I would personally look
> for a way to treat the audio information as data, calculate the the
> expected data from each card and then do a comparison of input and
> output data mathematically.

A cross-correlation between the captured data on a channel in
one unit versus a channel in the other unit would be the right
thing here. A value of 1 would be perfect. In practice you
won't achieve that even between channels in the same unit. I
suppose if the match across the two units were as good as the
match across channels within one unit, then one could really
consider the two Delta 1010s as one larger unit.

> In all likelihood, there are going to be small phase shift differences
> between the cards.

I don't know if I'd really expect drift. I'd expect jitter more than
drift.

> The inputs won't be perfectly in sync even if they
> are coming from the same sine wave generator. I would probably doing
> something like a standard deviation comparison

Std dev of what? Frequency? Period?

> between the input and
> two outputs.

How would you measure the input? It would have to be digitized, or
one would have to trust it's frequency and spectral purity. Chances
are that it will drift and have jitter too. To do a really good job
at a test like this one would need a very good generator, or a test
setup like those offered by Audio Precision <http://ap.com/>.

> If the data looks identical, within some some deviation
> amount, then most likely everything is working OK. On the other hand
> if there is a single byte getting dropped or added once in awhile then
> it will show up doing this sort of analysis very quickly.

Before going to all the trouble, one might look up the tolerance
of crystal frequencies for the kind of crystal used in the Delta
1010. Using the possible frequency mismatch one could calculate
how long it would take for the data to get out of alignment by
one sample (either at 44.1kHz, 48kHz, or 96kHz). One could
suspect that a PLL or DLL should force the frequencies to match
at least 10X better than they would without a sync circuit. I'm
guessing that a 1000X improvement is unrealizable.

> If you don't want to do it in C or some programming language then you
> can likely do it in Open Office or Excel.

Or Gnumeric, or octave, or Maxima, or any of the other Open
Source math programs.

Anyway, it seems that the test already done is a pretty good
indicator that the sync between the units is functional. Now
it's just a question of how good the design is, which is what's
left to measure. If it were me, and I also own two 1010s, I'd
test the system by recording some music and seeing how good it
sounded. Up to this point, my gear has never been the limiting
factor; it's always been the musicians that limit the ultimate
quality.

Unfortunately, my system is just slightly too old in terms of
JACK and kernel to synchronize my two units without patching and
upgrading according to:

http://www.sound-man.co.uk/linuxaudio/ice1712multi.html

I'll be upgrading as soon as I get through a few recording
projects that I'm working on.

G'luck....

--
Kevin
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user
Received on Tue Mar 4 00:15:03 2008

This archive was generated by hypermail 2.1.8 : Tue Mar 04 2008 - 00:15:03 EET