Thank you. Will try another route to figure this out.
Got it to load but it's still corrupt and doesn't ouput anything (plays a few seconds of empty track).
Use a text editor and change
MThd: to "MThd"
MTrk to "MTrk"
compile the .txt file to a binary with binasc with the following command
binasc midi_data.txt -c midi_data.mid
To install binasc
git clone http://github.com/craigsapp/binasc
cd binasc
make
make install
Mighty kind of you. Will give this a shot.
(post is archived)