SkyTNT / midi-model

Midi event transformer for symbolic music generation
Apache License 2.0
183 stars 29 forks source link

How to install and use Fluidsynth? #26

Closed pbz134 closed 1 week ago

pbz134 commented 1 week ago

Hello,

I cloned the repo and installed all the dependencies. Apparently, pip installed Fluidsynth 0.2, which is lower than 2.0 as written in your repo (obviously).

When running, I get the following error: Traceback (most recent call last): File "D:\PythonTests\midi-model\app.py", line 371, in synthesizer = MidiSynthesizer(soundfont_path) File "D:\PythonTests\midi-model\midi_synthesizer.py", line 11, in init fl = fluidsynth.Synth(samplerate=float(sample_rate)) AttributeError: module 'fluidsynth' has no attribute 'Synth'

I also saw that you linked the official fluidsynth website, so I downloaded it and added the .exe directory to PATH. However, it didn't change anything.

pbz134 commented 1 week ago

Sorry, nevermind! I forgot to restart the terminal. It works fine now :)

Sakura-Hydrangea commented 2 days ago

@pbz134 guy,how to solve this problem,i also meet the same bug

Sakura-Hydrangea commented 2 days ago
image

i also download fluid and add it to PATH, but still error

Sakura-Hydrangea commented 2 days ago

ok fine i have solved it