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?

  1. each instrument want use should on own midi channel (0..15). set using set_instrument(instrument_id, channel) method.

  2. 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

Popular posts from this blog

java - Ebean enhancement ignores a model -

javascript - Reference error while trying to encapsulate an animation function -

SQL php on different pages to Insert (mysqli) -