How to run this matlab file?
1 次查看(过去 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
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Audio and Video Data 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!