mingus中的pygame-drum示例给出了fluidynth soundfont.sf2加载错误

时间:2017-03-02 01:42:12

标签: python pygame fluidsynth

我已下载mingus并希望运行pygame-drum示例。我已经安装了所需的各种依赖项,例如pygamefluidsynth等。

我跑步时得到以下内容:

python pygame-drum.py

fluidsynth: error: Unable to open file "soundfont.sf2" 
fluidsynth: error: Couldn't load soundfont file 
fluidsynth: error: Failed to load SoundFont "soundfont.sf2" 
Couldn't load soundfont soundfont.sf2

在这种情况下缺少什么以及我需要安装什么来使pygame-drum示例有效?

1 个答案:

答案 0 :(得分:0)

您是否尝试过apt-get install fluidsynth?

$ sudo apt-get install fluidsynth
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  fluid-soundfont-gm libfluidsynth1 libqt5x11extras5 qsynth
Suggested packages:
  fluid-soundfont-gs timidity jackd
The following NEW packages will be installed:
  fluid-soundfont-gm fluidsynth libfluidsynth1 libqt5x11extras5 qsynth
0 upgraded, 5 newly installed, 0 to remove and 210 not upgraded.