Csound MIDI

Hi, I want to know how is the method to import a MIDI file in Csound?
tor99.

There is no way to do this in Csound. You can run an instrument from a midi file using -f but you can’t read a midi file within Csound as you would a sound file. Cabbage has some opcodes for doing this*, but it’s a bit of a niche feature. Adding this kind of functionality to Csound would involve adding additional dependencies which I don’t think the core developers want. I can look at making the Cabbage midi opcodes available as third party opcodes if people are interested. That way they could be used with vanilla Csound.