PortMedia offers free, cross-platform, open-source I/O libraries for digital media including MIDI, video, and audio (see www.portaudio.com). Most work is in C to facilitate interoperabilty with many languages and systems.
Saves me from tedious low-level work with MIDI drivers!
really like it
Awesome! I used it to emulate a midi controller for Leap Motion.