mfcheck
mfcheck is a command line utility that lets you check a standard MIDI file for errors. The program should be able to compile without problems on most common Unix / POSIX platforms. It can also be compiled in Cygwin , but it’s up to you to find out how.