前提
Windows標準のメディアプレーヤーではmidiファイルを再生できますが、Ubuntu標準のVLCでは再生することができないので困ります。
![](https://nanasina.com/wp-content/uploads/2023/12/Screenshot_20231227_100130.png)
やり方
vlcの拡張機能と、midiを演奏する用の音源をインストールします。(midiは楽譜ファイルなので)
sudo apt install vlc-plugin-fluidsynth fluid-soundfont-gs fluid-soundfont-gm
インストールし終わったvlcのツール>設定に行き、表示をシンプルから全てに変更しfluidsynthを検索します。
![](https://nanasina.com/wp-content/uploads/2023/12/Screenshot_20231227_102807-800x668.png)
サウンドフォントファイルを設定します
![](https://nanasina.com/wp-content/uploads/2023/12/Screenshot_20231227_102749-800x592.png)
/usr/share/sounds/のsf2かsf3のdefault-GMを設定しましょう。
まとめ
再生できるようになる
![](https://nanasina.com/wp-content/uploads/2023/12/Screenshot_20231227_104343-800x621.png)