Recording two separate inputs over one mic input.

조회 수: 1 (최근 30일)
Tim Mottram
Tim Mottram 2011년 8월 5일
Hi, I am using WAVRECORD to capture an analogue voltage so I can study the frequency components present. I have two different devices which are each producing a waveform. Both waveforms are mono. WAVRECORD gives the option to record in stereo, when this is done the two channels are summed (I assume internally by matlab). Is it possible to send different data over the two channels and output each channel separately? example [left,right] = WAVRECORD(..,..,2)? alternatively is there another way of doing it? Matlab says to many output arguments. In short, I want the data from both channels, before being summed. Thanks in advance Tim

채택된 답변

Daniel Shub
Daniel Shub 2011년 8월 5일
You probably want to use audiorecorder instead of wavrecord. You can only return 1 argument, but it can be nx2 such that x(:,1) is the left and x(:,2) is the right channel.
You should be able to record in stereo. I doubt it is MATLAB that is screwing things up. You should try an external audio recording program and see what happens. It is likely that your soundcard is setup for a differential microphone.
  댓글 수: 2
Tim Mottram
Tim Mottram 2011년 8월 7일
Hi Daniel,
Thanks a lot for your speedy response, You were quite right, although I can still use WAVRECORD, the matrix is, with two channels, (NumOfSamps,2). I can now use (:,1) and (:,2) to generate the freq values for my two plots.
My Greatest Thanks
Tim
Tim Mottram
Tim Mottram 2011년 8월 8일
Hi Daniel, Thanks for your response last time, it seems that I am still not in the clear, i have a 2 by samp number array but i think your point about the mic input being in differential mode is whats screwing things up. Both plots (supposedly from 2 different sources) are the same, any ideas on how to change from differential to 2 single ended, is this is even possible..?
Thanks
Tim

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by