pyfluidsynth
pyfluidsynth copied to clipboard
AttributeError: module 'fluidsynth' has no attribute 'Synth'
def display_audio(pm: pretty_midi.PrettyMIDI, seconds=30): waveform = pm.fluidsynth(fs=sampling_rate) waveform_short = waveform[:seconds*sampling_rate] return display.Audio(waveform_short, rate=sampling_rate)
This is the Code,
I installed fluidsynth by pip install --upgrade pyfluidsynth