nwhitehead / pyfluidsynth

Python bindings for FluidSynth
GNU Lesser General Public License v2.1
197 stars 56 forks source link

AttributeError: module 'fluidsynth' has no attribute 'Synth' #47

Closed geng-lee closed 10 months ago

geng-lee commented 10 months ago

80 def play_sequence(sequence, 81 synth=midi_synth.synthesize, 82 sample_rate=_DEFAULT_SAMPLE_RATE, 83 colab_ephemeral=True, 84 synth_args): 85 """Creates an interactive player for a synthesized note sequence. 86 87 This function should only be called from a Jupyter or Colab notebook. (...) 96 synth_args: Additional keyword arguments to pass to the synth function. 97 """ ---> 98 array_of_floats = synth(sequence, sample_rate=sample_rate, **synth_args) ... --> 468 fl = fluidsynth.Synth(samplerate=fs) 469 # Load in the soundfont 470 sfid = fl.sfload(sf2_path)

AttributeError: module 'fluidsynth' has no attribute 'Synth'

albedozero commented 10 months ago

This looks like a duplicate of #36 (and #20 and #18)