if e.type in [pygame.midi.MIDIIN]:
I tried that in a tiny test program, but that never gets triggered.
pygame.event.get() does work, so something is received.
My test-code is:
midi_in = pygame.midi.Input(pygame.midi.get_default_input_id())
for event in pygame.fastevent.get():
if event.type == pygame.QUIT:
if event.type in [pygame.midi.MIDIIN]:
I would like to receive it as an event, as that way I can do get() with a timeout instead of get() & sleep(); the timeout variant would reduce the latency that is introduced by the sleep.