First of all if you write:
from mingus.midi import fluidsynth as a
from mingus.midi import fluidsynth as b
then a
and b
as the same identical object. So writing b.set_instrument(0, 35, 0)
is the same as a.set_instrument(0, 35, 0)
. As far as I understand fluidsynth
you should use two different channels for each instruments:
a.set_instrument(0, 34)
a.set_instrument(1, 35)
a.play_Note(26, 0, 127)
a.sleep(0.5)
a.play_Note(26, 1, 127)
a.sleep(0.5)