PortMidi
Cross-platform MIDI IO library
PortMidi Documentation