Python Forum

Full Version: Mido and virtual midi ports
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm new here, and hope someone might point me to the right direction, or show me some demo code I might review.

I'm trying to use MIDO to allow a python script to send midi notes to a DAW. This requires accessing virtual midi ports (I think). I basically want my script to be able to control midi instrument apps that already reside in the same computer. There are other utilities out there that I might be able to use, but I'm not sure which and how to connect the script to them.

Any suggestions welcome.
perhaps: https://pypi.org/project/simplecoremidi/
or if not, complete list of search for midi + DAW: https://pypi.org/search/?q=midi+%2B+DAW&o=
I figured it out. using mido, I had to use loopmidi to create a virtual midi port input. Then, I used one of the mido commands to query the midi ports to find the name. Then I just input the port into the script.