Revision history for AudioLatencyMeasurement


Revision [21067]

Last edited on 2015-03-17 05:38:56 by ToBo
Additions:
legend('left (to DAW)','right (from DAW)')
xlim([ti-0.01 to+0.110])
Deletions:
legend('Input','Output')


Revision [21065]

Edited on 2015-03-16 23:11:31 by ToBo
Additions:
Here is a short summary of the connection plan between measuring computer (MC) and DAW. It depends on your measuring computer (MC) and DAW what kind of cables you need to connect them.
Now it's time to measure. I used [[http://audacity.sourceforge.net Audacity]] to play the file while recording in stereo both input channels. The file is mono and should output at both channels the same signal. Make sure you record just the input channel of your computer. There must not be any internal audio link to the recorded channels.
Finally, I've got this recorded file. And now you can take a look at the time line of Audacity to check the latency of your DAW.
Alternatively, you can use the second script I wrote to automatically analyse the file. The script outputs the latency and a graph as viewed below.
Deletions:
Here is a short summary of the connection plan between measuring computer (MC) and DAW:
I used [[http://audacity.sourceforge.net Audacity]] to play the file while recording in stereo both input channels. The file is mono and should output at both channels the same signal. Make sure you record just the input channel of your computer. There must not be any internal audio link to the recorded channels.
Finally, I've got this recorded file. And now you can take a look ath the time line of Audacity to check the latency of your DAW.
You can also use the second script I wrote to automatically analyse the file. The script outputs the latency and a graph as viewed below.


Revision [21064]

Edited on 2015-03-16 23:08:55 by ToBo
Additions:
If found my way to measure the total latency of my DAW. I wanted to measure the total delay, my [[http://de.wikipedia.org/wiki/Digital_Audio_Workstation DAW]] needs to get a external signal feed it through the DAW and output it again. Actually, I can imagine to measure it with with one computer, but I wanted to separate the measuring system (my laptop) and the measured system (the DAW).
Here is a short summary of the connection plan between measuring computer (MC) and DAW:
I generated the test audio file using [[Octave]]. You can download the test file or generate it by yourself using the script.
Generator script: [[OctaveGeneratingATestFile]]
%%(Matlab;;audioana.m)
Deletions:
If found my way to measure what I wanted to measure.
I wanted to measure the delay my [[http://de.wikipedia.org/wiki/Digital_Audio_Workstation DAW]] needs to get a external signal and output it again. Actually it is possible to do it with one computer, but I wanted to separate the measuring system (my laptop) and the measured system (DAW).
Conection plan between measuring computer (MC) and DAW.
I generated the test file using [[Octave]]. You can download the test file or generate it by yourself using the script.
Script: [[OctaveGeneratingATestFile]]
%%(Matlab)


Revision [21063]

Edited on 2015-03-16 23:04:54 by ToBo
Additions:
Edit on the next day: The DAW has drop outs approx. every 20 Minutes, lasting up to 5 seconds.


Revision [21062]

Edited on 2015-03-16 22:56:46 by ToBo
Additions:
Conection plan between measuring computer (MC) and DAW.
MC right out --> DAW in
MC left out --> MC left in
DAW out --> MC right in


Revision [21059]

Edited on 2015-03-16 04:56:50 by ToBo
Additions:
I wanted to measure the delay my [[http://de.wikipedia.org/wiki/Digital_Audio_Workstation DAW]] needs to get a external signal and output it again. Actually it is possible to do it with one computer, but I wanted to separate the measuring system (my laptop) and the measured system (DAW).
Download:
{{fileview location="elektronik/latency_test.wav"}}
Deletions:
I wanted to measure the delay my DAW needs to get a external signal and output it again. Actually it is possible to do it with one computer, but I wanted to separate the measuring system (my laptop) and the measured system (DAW).
Download: [[http://tnotes.de/elektronik/latency_test.wav latency_test.wav]]


Revision [21058]

Edited on 2015-03-16 04:54:55 by ToBo
Additions:
Download: [[http://tnotes.de/elektronik/latency_test.wav latency_test.wav]]
Script: [[OctaveGeneratingATestFile]]
Deletions:
- Download: [[http://tnotes.de/elektronik/latency_test.wav latency_test.wav]]
- Script: [[OctaveGeneratingATestFile]]


Revision [21057]

Edited on 2015-03-16 04:54:10 by ToBo
Additions:
- Download: [[http://tnotes.de/elektronik/latency_test.wav latency_test.wav]]
Deletions:
- Download: ...


Revision [21054]

Edited on 2015-03-16 04:47:59 by ToBo
Additions:
I generated the test file using [[Octave]]. You can download the test file or generate it by yourself using the script.
I used [[http://audacity.sourceforge.net Audacity]] to play the file while recording in stereo both input channels. The file is mono and should output at both channels the same signal. Make sure you record just the input channel of your computer. There must not be any internal audio link to the recorded channels.
{{image url="images/AudioLat_Screenshot_Audacity.png" alt=""}}
Finally, I've got this recorded file. And now you can take a look ath the time line of Audacity to check the latency of your DAW.
You can also use the second script I wrote to automatically analyse the file. The script outputs the latency and a graph as viewed below.
Final I've got a latency of 8.62 ms using my [[FCA1616]]. No remarkable delay at all playing a guitar. I need to see if I get drop outs the next days.
Deletions:
First of all you need the test file I generated using Octave. You can download the test file or generate it by yourself using the script.
Final latency: 8.62 ms


Revision [21053]

Edited on 2015-03-16 04:39:14 by ToBo
Additions:
{{image url="images/latency_ab_FCA1616.png" alt=""}}
You need this analysis script, if yo want [[Octave]] to measure your latency.
%%(Matlab)
% Andraes Tobola, March 2015
% Analyse a test file for audio latency
clc
clear
fs = 44100; % Sampling rate
fn = 'latency_meas1.wav'; % Filenemae
x = auload(fn);
y = abs(x);
yi = y(:,1);
yo = y(:,2);
N = length(yi);
tl = linspace(0, N/fs, N);
th= .05; % Threshold
idx_i = find(yi>th,1);
idx_o = find(yo>th,1);
ti = idx_i / fs;
to = idx_o / fs;
hold off
plot(tl,y);
hold on
m = max(max(y));
plot([ti ti],[0 m],'r')
plot([to to],[0 m],'r')
xlabel('Time (s)')
ylabel('Rectified audio samples')
grid on
legend('Input','Output')
L = (to - ti); % Latency in seconds
disp (['Latency: ' num2str(round(L*100000)/100) ' ms' ])
%%


Revision [21052]

Edited on 2015-03-16 04:36:27 by ToBo
Additions:
I wanted to measure the delay my DAW needs to get a external signal and output it again. Actually it is possible to do it with one computer, but I wanted to separate the measuring system (my laptop) and the measured system (DAW).
The idea is to generate a white noise signal with a duration of 100 ms, repeated every 1 second and to send this signal from another computer to the DAW. I also connected the return signal from my DAW to the first channel of my laptop (measuring computer). Beside this, to eliminate the unknown latency of the measuring computer, I connect the other second output channel of the computer to the second input channel of the computer.
Deletions:
I wanted to measure the delay my DAW needs to get a external signal and output it again. Actually it is possible to do it with one computer, but I wanted to separate the measuring system and the measured system.
The idea is to generate a white noise signal with a duration of 100 ms, repeated every 1 second and to send this signal from another computer to the DAW. To


Revision [21051]

Edited on 2015-03-16 04:33:37 by ToBo
Additions:
If found my way to measure what I wanted to measure.
I wanted to measure the delay my DAW needs to get a external signal and output it again. Actually it is possible to do it with one computer, but I wanted to separate the measuring system and the measured system.
The idea is to generate a white noise signal with a duration of 100 ms, repeated every 1 second and to send this signal from another computer to the DAW. To
First of all you need the test file I generated using Octave. You can download the test file or generate it by yourself using the script.
- Download: ...
- Script: [[OctaveGeneratingATestFile]]
Final latency: 8.62 ms
Deletions:
[[OctaveAudioDateienErzeugen]]


Revision [21050]

Edited on 2015-03-16 01:15:57 by ToBo
Additions:
=====Latency Measurement of your Audio Interface=====
How to measure the latency of your audio interface?
[[OctaveAudioDateienErzeugen]]
Deletions:
==========


Revision [21049]

The oldest known version of this page was created on 2015-03-16 01:15:22 by ToBo
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki