Matlab scripts to read and write MIDI files