Cabbage Logo
Back to Cabbage Site

MIDI file

Hello,

running “GEN42.csd” in Cabbage, what is the correct way to write a multitrack MIDI file of the live performance?
(in this case there are 8 tracks)
Thanks for any advice.

t.

I don’t think there are any simple way to write MIDI file from Csound. You would need to output each event as a MIDI note. Doable, but quite a lot of work.

Thanks.
It would also be enough to be able to write only the score (file.sco) of the live improvisation. I’m trying to figure out if this is possible and how this can be done. The instrument (file.orc) is not important, sine wave is fine too. Then converting the .sco to .mid is not a problem.

t.

You can use one of the file writing opcodes to output anything you like in real time. It’s just a matter of putting it in the right place.