Easiest way to select midi input in a Standalone App
-
I went through a couple of older posts and the way the settings floating tile works seem to have changed a lot over the years.
What would currently be the easiest way to give the user a "dropdown" box to select the midi input e.g. at the bottom of the interface only visible when the plugin is standalone?
without the need to display the entire settings floating tile...I'm hoping there is a way without a lot of custom scripting as I still suck at it a lot ;)
-
@Morphoice call the method that returns the list of input devices, and populate a combo box with the list. On combo box control, unselecet all midi devices and select the newly selected one.
-
@aaronventure got it thanks!
-
Bonus: instead of having a refresh button you can use a mouse broadcaster to be refreshing the combobox list on mouse hover. You'll just have to make sure your selected device remains the same (by name) because the selection is based on item order, which can change if your device list changes.
-
@aaronventure oh ok. I have around 24 midi ports over here... so I'm hoping nothing changes
-
@Morphoice said in Easiest way to select midi input in a Standalone App:
What would currently be the easiest way to give the user a "dropdown" box to select the midi input
That would limit the user to only one MIDI input at a time. Some keyboard (both of mine, and it's super annoying) present as two different MIDI devices, one sends controller data and the other sends notes, so you may want to allow the user to enable more than one device at a time.
-
@d-healey will the list scroll if it exceeds the plugin height?
-
@Morphoice The list will scroll if it exceeds the height of the floating tile.