The (ex-totem?) Video player proposes the installation of gstreamer1.0-plugins-bad, but after installation there is no playback, nothing. When I try to open the .midi file again, the Video player comes up with the installation again and again. So I guess, this is not the right package.

UPDATE: Rythmbox isn't configured to play .midi files either.

enter image description here


The gstreamer method of playing MIDI is to use the sound card's sequencer to do so. However, many sound cards do not necessarily have an instrument for playing MIDI, these days. Instead, you will need to install a software sequencer, such as timidity to play the files.

| improve this answer | |

Open the terminal and enter:

sudo apt install timidity timidity-interfaces-extra

Enter your password, another prompt may appear type, Y and hit enter.

Go to your menu, you should now have an application called TiMidity++ launch it. In terminal would be timidity mymusic.mid.

In TiMidity++ go to File > load and redirect it the location of your midi file, select the file, then okay then play

| improve this answer | |
  • 6
    Does anyone know how to associate .mid file to play using timidity? – Soichi Hayashi Jan 14 '17 at 16:52
  • 2
    Not necessary to install the timidity-interfaces-extra - it's quite spooky. Can use timidity directly from the terminal. – Andriy Makukha Feb 19 '19 at 10:45
  • @SoichiHayashi check how to associate any MIME type with a default program. Then you can test from CLI with xdg-open filename.mid. – Pablo Bianchi Mar 28 '19 at 2:55

VLC media player can do that for you given that the plugin for midi is installed.

sudo apt install vlc vlc-plugin-fluidsynth

After that you can play your midi library with VLC without installing timidity.

| improve this answer | |
  • 3
    Note, however, that vlc-plugin-fluidsynth uses more disk space than timidity timidity-interfaces-extra (119 vs. 35.8MB). – ebosi Oct 2 '18 at 11:56
  • Worked for me with Ubuntu 20.04 too – Amil Waduwawara Aug 23 at 18:03

I needed proper sound fonts.

sudo apt install fluid-soundfont-gm fluid-soundfont-gs
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.