midiasm

midiasm is a command-line utility to disassemble and reassemble a MIDI file into and from human readable text. The source code and a set of executables can be found on github:

https://github.com/transcriptaze/midiasm