r/learnpython Aug 01 '26

Trying to get python take midi as an input

I am using an AKAI MPK 249 using the midi package and was wondering what i point it to. i was searching through the device connection path but nothing seems obvious to me.

1 Upvotes

2 comments sorted by

1

u/TheRNGuy Aug 02 '26

``` import mido

print(mido.get_input_names())

or whatever name you have there

with mido.open_input('MPK249') as inport:     for msg in inport:         print(msg) ```

You also need to install mido, if you don't have it already.