Timidity

Timidity is a software synthesizer for various platforms. It can convert MIDI (and several similar music formats) to (pcm) wave format (.wav). It can be used as a MIDI player, but also as a MIDI server or emulate a OSS or ALSA sequencer.

Timidity++ is based on the Timidity code (which isn't developed anymore) and now the recommended version to use.