python-mingus
python-mingus copied to clipboard
Error : AttributeError: 'FluidSynthSequencer' object has no attribute 'sfid'
Hi, I'm using Mingus 0.6.1 I'm trying to play a composition with a piano instrument using fluidsynth. This is my code.
from mingus.containers import Composition, MidiInstrument, Bar, Note, Track
from mingus.midi import fluidsynth
m = MidiInstrument('Piano')
b = Bar()
b + Note('C')
b + Note('E')
b + Note('A')
b + 'E'
c = Bar()
c + Note('G')
c + 'C'
c + 'E'
c + Note('C', 5)
t = Track()
t + b
t + c
t2 = Track()
t2 + b
t2 + b
t2.instrument = m
c = Composition()
c + t
c + t2
fluidsynth.play_Composition(c)