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 -

ubuntu - How to disable Kernel Module Signing in linux -

SQL php on different pages to Insert (mysqli) -