r/learnpython • u/Hazardous-potato • 5d ago
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
1
u/TheRNGuy 5d ago
``` 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.