I was taken by surprise when I found out that I could not play MIDI audio in my Ubuntu box. Apparently it has to do with your sound card. But still..!
One of the simplest methods to play a midi file in Ubuntu is to install timidity. Yeah, lovely name that. 😀
sudo apt-get install timidity timidity-interfaces-extra
You can play a midi file directly from the command timidity followed by the file name. For example,
Or, if you want a GUI, you can simply type
and an old-fashioned window will pop up.
Happy listening! 😀