フィルターのクリア

DSP Toolbox use left and right speaker

2 ビュー (過去 30 日間)
TU Braunschweig
TU Braunschweig 2014 年 6 月 6 日
回答済み: Salaheddin Hosseinzadeh 2014 年 6 月 8 日
Hey guys,
I have a short question. I would like to play different sounds with my left and right speaker, by using the matlab dsp toolbox.
Right now I am creating a two different sinus waves (two channels) but the dsp.player just play the first channel.
Player=dsp.AudioPlayer('SampleRate',Fs); MySineWave = dsp.SineWave('SamplesPerFrame',SamplesPerFrame,... 'Amplitude',[2.5 3],... 'PhaseOffset',[0 0],... 'SampleRate',Fs,'Frequency',[900 200]); …
step(Player,x); x=step(MySineWave);
Kindest Regards

回答 (1 件)

Salaheddin Hosseinzadeh
Salaheddin Hosseinzadeh 2014 年 6 月 8 日
Hi TU,
If you're creating the signals, why not using an analog output (winsound)?
Another point! I'm not sure if you can set different sampling frequencies for right and left channle! At list you cannot do that when using winsound. So, you have to chose a single sampling frequency.
I personally prefer this, as I feel more control over triggering.
Take a look at the attached file plz. Pass the data as, a matrix of two columns, to this function and you'll be able to hear it.
Hope that solves your problem.

カテゴリ

Help Center および File ExchangeSignal Processing Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by