timidity

Play and convert MIDI files. More information: http://timidity.sourceforge.net.

timidity path/to/file.mid

timidity --loop path/to/file.mid

timidity --force-keysig=-flats|+sharps path/to/file.mid

timidity --output-mode=w --output-file=path/to/file.wav path/to/file.mid

timidity --output-mode=F --output-file=path/to/file.flac path/to/file.mid