open_output fails to open the port identified by get_input_names #611
-
Hi there, I'm trying to start simple - open a port and then send a note to a connected synth. Apologies if I'm making any rookie errors. Any suggestions for next steps to try please? Python 3.13 on Windows 11 The open_output method fails to open the port which has been identified by the get_input_names method. Same with open_ioport. However, open_input gives a different error message so both are included below. Just in case I also imported rtmidi which made no difference. MIDI-OX successfully sends and receives MIDI data via this interface on this machine. MIDI-OX has not been run since the last reboot, nor has any other MIDI interface or application. mido.open_output...
mido.open_input...
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi and thanks for trying out mido! In your first sample, you’re trying to open an output using an input name. This is unlikely to work. For the second, this happens when the port is already opened elsewhere. Unless your interface has a "multiclient" driver, only one application can access a port. Close any application using the port and mido should be able to use it. |
Beta Was this translation helpful? Give feedback.
Hi and thanks for trying out mido!
In your first sample, you’re trying to open an output using an input name. This is unlikely to work.
What you want is
mido.get_output_names()
.For the second, this happens when the port is already opened elsewhere. Unless your interface has a "multiclient" driver, only one application can access a port. Close any application using the port and mido should be able to use it.