I'm creating a pygame that renders midi notes on a grid and I'd like to be able to use the same midi input through Ableton at the same time.
Right now I'm using this to capture:
inport = mido.open_input(synth_name)
msg = inport.receive()
Is there a way to do this while playing through Ableton?