Ubuntu下播放midi格式文件方法:
1. Install timidity++
2. Get a soundfont, such as:
wget ftp://ftp.personalcopy.net/pub/Unison.sf2.gz
gunzip Unison.sf2.gz
有些软波表是sfpack的格式需要安装sfpack(windows下的程序,要用wine)
3. Add the following line to the bottom of /etc/timidity++/timidity.cfg
soundfont /”$sfpath”/Unison.sf2
4. timidity -Od “$file”