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'
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'