Clear Filters
Clear Filters

Writing midi files from audio data

7 views (last 30 days)
Andy
Andy on 22 Apr 2013
Hi All,
I have some problems writing midi files. I got an 'output' matrix containing music notes and each note is converted to audio data 'a'. Each 'a' can then be sounded out by soundsc by looping through the notes in the output array. Can anybody help me on how to store all the 'a' in a midi file?
fs=19200;
for x=1:length(output)
key = tone(output(x));
a = note10(key,0.5);
soundsc(a,fs);
end
Thank you for any help you may give in advance!
Andy

Answers (0)

Categories

Find more on Simulation, Tuning, and Visualization in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!