Revision history for AudioLatencyMeasurement
Additions:
legend('left (to DAW)','right (from DAW)')
xlim([ti-0.01 to+0.110])
xlim([ti-0.01 to+0.110])
Deletions:
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.
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:
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.
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)
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:
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)
Additions:
Edit on the next day: The DAW has drop outs approx. every 20 Minutes, lasting up to 5 seconds.
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
MC right out --> DAW in
MC left out --> MC left in
DAW out --> MC right in
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"}}
Download:
{{fileview location="elektronik/latency_test.wav"}}
Deletions:
Download: [[http://tnotes.de/elektronik/latency_test.wav latency_test.wav]]
Additions:
Download: [[http://tnotes.de/elektronik/latency_test.wav latency_test.wav]]
Script: [[OctaveGeneratingATestFile]]
Script: [[OctaveGeneratingATestFile]]
Deletions:
- Script: [[OctaveGeneratingATestFile]]
Additions:
- Download: [[http://tnotes.de/elektronik/latency_test.wav latency_test.wav]]
Deletions:
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.
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:
Final latency: 8.62 ms
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' ])
%%
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' ])
%%
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.
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:
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
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
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:
Additions:
=====Latency Measurement of your Audio Interface=====
How to measure the latency of your audio interface?
[[OctaveAudioDateienErzeugen]]
How to measure the latency of your audio interface?
[[OctaveAudioDateienErzeugen]]