extract channel 1 from a sound?

23 ビュー (過去 30 日間)
Jay
Jay 2016 年 4 月 23 日
コメント済み: Star Strider 2016 年 4 月 23 日
Dear, how can I take channel 1 or channel 2 from a sound? Thank you!

回答 (1 件)

Star Strider
Star Strider 2016 年 4 月 23 日
MOST sound files in MATLAB have two columns such that the left column is the first channel and the right column is the second channel. If you have all the relevant information (particularly sampling frequency ‘Fs’), you should be able to reproduce the sound from each channel/column independently and successfully.
  2 件のコメント
Jay
Jay 2016 年 4 月 23 日
Thank you for your answer. Do you mean I should use right right = y(:,1); ? is that for channel one?
Star Strider
Star Strider 2016 年 4 月 23 日
My pleasure.
From the documentation on the sound function, Channel #1 (first column) is the left channel and Channel #2 (second column) is the right channel. That is easy enough to change in code if you need to.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeAudio I/O and Waveform Generation についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by