С MIDI в Linux все печально
Есть программный синтезатор fluidsynth. Звука добиться не удалось.
qsynth - графический запускатель MIDI сервера. Звука добиться не удалось.
Timidity в Linux
Единственная программа, которая заработала - timidity. Через него MIDI файлы сразу заиграли.
Пользоваться timidity можно так. Вначале запускается MIDI-демон. Он запускается путем вызова команды timidity без параметров. После запуска можно прерить наличие демона в процессах. Если он есть, то половина дела сделано:
$ timidity
TiMidity++ version 2.13.2 -- MIDI to WAVE converter and player
Copyright (C) 1999-2004 Masanao Izumo <iz@onicos.co.jp>
Copyright (C) 1995 Tuukka Toivonen <tt@cgs.fi>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
$ ps aux | grep timi
timidity 3482 0.0 0.1 20220 7288 ? S 09:28 0:00 /usr/bin/timidity -Os -iAD
Прослушать MIDI можно через ту же программу timidity, указав ей MIDI-файл:
$ timidity music.mid
Playing music.mid
MIDI file: music.mid
Format: 1 Tracks: 11 Divisions: 384
Track name: Beznih
Track name: Words