python用fluidynth合成midi

nin*_*key 7 python midi synthesizer

我无法导入fluidynth.[也许有更好的模块?]

我正在尝试从python或pygame合成midi.我可以从pygame发送midi事件.我正在使用mingus,似乎pyfluidsynth会很好/最简单.

我认为这意味着安装了pyfluidsynth,但是没有单独的fluidlyth.我不知道它是否需要'fluidynth'安装程序才能工作?

test.py:

import fluidsynth
print ":("
Run Code Online (Sandbox Code Playgroud)

错误:

Traceback (most recent call last):
  File "test.py", line 1, in <module>
    import fluidsynth
  File "C:\Users\jake\AppData\Roaming\Python\Python27\site-packages\fluidsynth.py", line 34, in <module>
    raise ImportError, "Couldn't find the FluidSynth library."
ImportError: Couldn't find the FluidSynth library.
Run Code Online (Sandbox Code Playgroud)

使用:python 2.7-win32

jba*_*ter 0

看看fluidsynth.py,你的猜测可能是正确的。您应该尝试将其放在fluidsynth.dll系统库搜索路径中的某个位置(最简单的可能是与您的脚本或 相同的目录fluidsynth.py)。

我认为这个存档(通过谷歌找到)包含必要的win32二进制文件:http://svn.drdteam.org/zdoom/fluidsynth.7z