libmidifile
A library for reading and writing standard MIDI files
This library provides functions for reading and writing standard MIDI files. It was originally written by Tim Thompson <tjt@nosuch.com>. It has been modified and corrected by Piet van Oostrum <piet@cs.uu.nl>. I have made some minor changes to it in order to work properly with GCC.