Helper functions to make it easy to start messing around
Utility function to help choosing a midi device. If there is only a single device, we select that. You can also set a default device (by its name), which will be automatically selected if present.
Select a MIDI input device (source)