フィルターのクリア

How to run this matlab file?

1 回表示 (過去 30 日間)
jérôme TAÏEB
jérôme TAÏEB 2018 年 9 月 30 日
編集済み: Walter Roberson 2018 年 9 月 30 日
Hi,
Attached file m with a delay function
How in the windows command apply this function or this .m file to the audio file 'musique.mp3' via:
audioread ( 'music.mp3');
?
thanks
  1 件のコメント
Walter Roberson
Walter Roberson 2018 年 9 月 30 日
That is not valid code. It looks like you modified existing code.

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

採用された回答

Walter Roberson
Walter Roberson 2018 年 9 月 30 日
編集済み: Walter Roberson 2018 年 9 月 30 日
[data, fs] = audioread('music.mp3');
gain = rand() * 2;     %need _some_ value
delaytime = rand() * 3;  %need _some_ value
%delay code can only handle one channel at a time
for ch = 1 : size(data, 2)
  delayed_sound(:,ch) = delay(data(:,ch), gain, delaytime, fs);
end
sound(delayed_sound, fs)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAudio and Video Data についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by