midicsv: tool to convert between MIDI and CSV.

http://www.fourmilab.ch/webtools/midicsv/

Midicsv is a well established tool to process MIDI files. It comes bundled with <a href="http://http://muse-sequencer.org/">Muse</a> on Debian, which doesn't have a formula yet on homebrew.