module 'fluidsynth' has no attribute 'synth' #1428
-
I'm assuming I'm doing something simple wrong, but I haven't been able to get fluidsynth to work in python. It always returns the error "module 'fluidsynth' has no attribute 'synth'". I am running my code in a vscode virtual environment and have done a pip install for both fluidsynth and pyfluidsynth. I haven't added a path to the sound font because I haven't managed to get past line four without an error. Does anyone know how to fix this? This is my code: `import time fs = fluidsynth.Synth() sfid = fs.sfload(r'c:\users\me\mydir\FluidR3_GM.sf2') # replace path as needed fs.noteon(0, 60, 30) time.sleep(3.0) fs.noteoff(0, 60) time.sleep(1.0) fs.delete()` |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, Your question is probably related to pyfluidsynth. This repo is only for the fluidsynth itself and not pyfluidsynth, so I don't think you're gonna get an answer here. I suggest you ask there instead. |
Beta Was this translation helpful? Give feedback.
Hi,
Your question is probably related to pyfluidsynth. This repo is only for the fluidsynth itself and not pyfluidsynth, so I don't think you're gonna get an answer here. I suggest you ask there instead.