PortMidi is a library for software developers. It supports real-time
input and output of MIDI data using a system-independent interface.
PortMidi runs on Windows (using MME), Macintosh (using CoreMIDI), and
Linux (using ALSA).
