How to run this matlab file?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
jérôme TAÏEB
am 30 Sep. 2018
Bearbeitet: Walter Roberson
am 30 Sep. 2018
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 Kommentar
Akzeptierte Antwort
Walter Roberson
am 30 Sep. 2018
Bearbeitet: Walter Roberson
am 30 Sep. 2018
[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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Audio I/O and Waveform Generation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!