Borrar filtros
Borrar filtros

Writing midi files from audio data

7 visualizaciones (últimos 30 días)
Andy
Andy el 22 de Abr. de 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

Respuestas (0)

Categorías

Más información sobre Simulation, Tuning, and Visualization en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by