What I would like to do is pass the number of the MIDI device selected in the Audio Setting dialog window. Is there a method I can use to retrieve this number?
Of course, but how do I get the name of the selected midi device to compare with what’s in the list of devices returned by MidiOutput::getDevices()? Does the AudioDeviceManager class have a method for retrieving the MIDI device selected by the user?
It lets you retrieve the current Audio Device but I don’t see any method in the docs for getting the current MIDI device. Perhaps it’s there but not documented?
Doh! Sorry, misread that… Well, no, because you can enable any number of midi inputs - there’s no concept of a “selected” one. You could go through them all and find out which ones are enabled?
Just because that’s how most people would want to use it, I guess. You might have a couple of different controllers, but won’t tend to play the same thing through more than one synth. If you need to do anything more complex, it’s easy enough to create the devices yourself.