add libmidi

for MIDI reading and writing