필터 지우기
필터 지우기

Recording output of stereo cable for latency measurement

조회 수: 2 (최근 30일)
Anton M
Anton M 2022년 5월 7일
댓글: Jonas 2022년 5월 10일
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
Anton M
Anton M 2022년 5월 10일
The audiorecorder worked very well thank you!
Jonas
Jonas 2022년 5월 10일
great! have a nice day!

댓글을 달려면 로그인하십시오.

답변 (1개)

Anton M
Anton M 2022년 5월 10일
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);

카테고리

Help CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by