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 - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - UML - How would you draw a try catch in a sequence diagram? -

c++ - No viable overloaded operator for references a map -