pyfluidsynth
pyfluidsynth copied to clipboard
fluidsynth: error: Unknown integer parameter 'synth.sample-rate'
Running the sample code in the readme works but I get this error in the console. I tried supplying a sample rate to the fluidsynth.Synth() constructor but that didn't remove it.
Hi, have you perhaps found a solution? I am currently encountering the same problem and I am also trying to find a solution...
You can change the default value of samplerate in __init__ function of Synth class from 44100 to 44100.0, which will fix the error.
Change line 614
def __init__(self, gain=0.2, samplerate=44100, channels=256, **kwargs):
to
def __init__(self, gain=0.2, samplerate=44100.0, channels=256, **kwargs):
I've created #44 fixing this issue by ensuring a float is passed.