

The digital audio data generated by TiMidity++ can be stored in a file for processing, or played in real-time through an audio device.

TiMidity++ uses Gravis Ultrasound-compatible patch files or Soundfonts (*.sfx, *.sf2) to generate digital audio data from MIDI files. TiMidity++ is a CLI utility that converts some of MIDI files (supported formats: Standard MIDI files (*.mid), Recomposer files (*.rcp, *.r36, *.g18, *.g36) and Module files (*.mod)) into formatted audio files (e.g. In this article, I will explain to you how to easily convert MIDI files to MP3 in your Ubuntu 20.04 desktop and server using Timidity to play the midi files and FFMPEG to pipe it into an MP3 file.

After some research, I ended up using timidity to play the MIDI file and FFmpeg to store the output stream into an MP3 file using the command line. As I mentioned in previous posts on how to convert MIDI files to WAV in Windows using VLC, I had to find a way to convert them as well in Ubuntu.
