廢話不多說,反正Chakra Linux 也沒有圖型的安裝介面。
pacman -S dosbox timidity++ soundfont-fluidr3
就這樣?當然不是。
首先先執行 dosbox 讓它產生 ~/.dosbox/dosbox-吧啦吧啦的.cfg
再把 fluidr3 音源 掛進 timidity 裡
sudo kate /etc/timidity++/timidity.cfg
找個喜歡的空位把 fluidr3掛起來
soundfont /usr/share/soundfonts/fluidr3/FluidR3.SF2
確定沒key錯就先儲存吧
執行 timidity -iA -Os 應該會出現如下 :
Requested buffer size 32768, fragment size 8192
ALSA pcm 'default' set buffer size 32768, period size 8192 bytes
TiMidity starting in ALSA server mode
Opening sequencer port: 128:0 128:1 128:2 128:3
當然也有可能會發生 error 說什麼找不到 /dev/snd/seq的...
這時就到 /etc/module-load.d/ 這個目錄裡 新建一個XXX.conf (就是把snd-seq這個module掛上去)
sudo kate /etc/module-load.d/snd-seq.conf
內容就只要一行
snd-seq
這樣就行了
重開機後就可以在 ls /dev/snd/* 看到 /dev/snd/seq 這個東西
再回到 dosboxbox-074.conf 找到 [MIDI]
把內容改成如下:
[midi]
# mpu401: Type of MPU-401 to emulate.
# Possible values: intelligent, uart, none.
# mididevice: Device that will receive the MIDI data from MPU-401.
# Possible values: default, win32, alsa, oss, coreaudio, coremidi, none.
# midiconfig: Special configuration options for the device driver. This is usually the id of the device you want to use.
# See the README/Manual for more details.
mpu401=intelligent
mididevice=alsa <=== 改成這個
midiconfig=128:0 <===這個值就是從 timidity -iA -Os 的 Opening sequencer port: 128:0 128:1 128:2 128:3 來的
存檔後就OK了。