python - Pygame Midi Multi Instrument -
is possible play multiple instruments @ same time in pygame.midi? solution found note on, change instrument, other note on, note off, note off
but think not proper way. there alternative?
each instrument want use should on own midi channel (0..15). set using
set_instrument(instrument_id, channel)
method.then pass channel number of instrument want send note on/off message using
note_on(note, velocity, channel)
,note_off(note, velocity, channel)
methods.
Comments
Post a Comment