Recording output of stereo cable for latency measurement

1 visualización (últimos 30 días)
Anton M
Anton M el 7 de Mayo de 2022
Comentada: Jonas el 10 de Mayo de 2022
Hi there,
I have a normal stereo aux cable plugged into the audio input jack. The stereo cable comes from another sound stimulator that produces sounds and sends triggers. The stereo cable contains information of the audiosignal in one channel, and information of triggers in the other channel.
Now I need to measure the latency and jitter of the audiosignal and trigger pulses and ideally I would want to visualise the audiosignal and trigger pulse in a top and bottom graph.
Is there a way to measure and visualise the signals of a stereocable input in Matlab?
  9 comentarios
Anton M
Anton M el 10 de Mayo de 2022
The audiorecorder worked very well thank you!
Jonas
Jonas el 10 de Mayo de 2022
great! have a nice day!

Iniciar sesión para comentar.

Respuestas (1)

Anton M
Anton M el 10 de Mayo de 2022
Thank you both, the following worked for me very well!
Fs = 44100 ;
nBits = 16 ;
nChannels = 2 ;
ID = -1; % default audio input device
recObj = audiorecorder(Fs,nBits,nChannels,ID);
recordblocking(recObj,300);
MyRec = getaudiodata(recObj);
FirstCh = MyRec(:,1);
SecondCh = MyRec(:,2);

Categorías

Más información sobre Audio I/O and Waveform Generation en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by