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

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

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -