# Csound MIDI 

**URL:** <https://forum.csound.com/t/csound-midi/2358>\
**Category:** Newbies\
**Created:** [January 4, 2026, 10:25pm UTC](https://forum.csound.com/t/csound-midi/2358 "2026-01-04T22:25:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tor99](https://forum.csound.com/letter_avatar_proxy/v4/letter/t/c67d28/32.png) [@tor99](https://forum.csound.com/u/tor99)\
**Post date:** [January 4, 2026, 10:25pm UTC](https://forum.csound.com/t/csound-midi/2358/1 "2026-01-04T22:25:14Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![rory](https://forum.csound.com/user_avatar/forum.csound.com/rory/32/7_2.png) [@rory](https://forum.csound.com/u/rory)\
**Post date:** [January 4, 2026, 10:32pm UTC](https://forum.csound.com/t/csound-midi/2358/2 "2026-01-04T22:32:07Z")

</div>

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.

> **[New MIDI file opcodes](https://forum.cabbageaudio.com/t/new-midi-file-opcodes/3586)**
>
> Updated on the 27/03/23 The ability to read MIDI files within an instrument has always been missing in Csound, until now 🙂 Last week I pushed two new Cabbage opcodes to the code base. You can try them out with the latest dev build of Cabbage. They...
