Playing wav/midi
Ältere Kommentare anzeigen
Hi all. Is there a way to play wav and midi files in Matlab? I'm want to do something like:
%Generate a number from 1 to 3;
x = ceil(rand(1)*3);
switch x
case 1
??play('irish.mid')??
case 1
??play('beep.wav')??
case 1
??play('splash.wav')??
end
Antworten (2)
Fangjun Jiang
am 11 Aug. 2011
Does this give you an idea?
system('C:\WINDOWS\system32\dllcache\wmplayer http://www.satelitemusical.net/mj-akon-hold-my-hand.wma')
or
m=wavread('toilet.wav');
sound(m);
or
beep
Frank
am 11 Aug. 2011
1 Kommentar
Daniel Shub
am 11 Aug. 2011
Please accept your answer to your question if you are happy with it.
Kategorien
Mehr zu Simulation, Tuning, and Visualization finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!