首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >mingus中的pygame-drum示例给出fluidsynth soundfont.sf2加载错误

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

Stack Overflow用户
提问于 2017-03-02 09:42:12
回答 1查看 382关注 0票数 1

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

当我运行时,我得到了以下信息:

代码语言:javascript
复制
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示例正常工作?

EN

回答 1

Stack Overflow用户

发布于 2017-03-14 00:41:38

你有没有尝试过apt-get install fluidsynth?

代码语言:javascript
复制
$ 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.
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/42545366

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档