Hey! We have built a minimal background service for making MIDI connections automatically, called amidiauto
It’s integrated by default in Patchbox OS image, but it can be installed manually by doing
sudo apt-get update && sudo apt-get install amidiauto
It categorizes all of the MIDI ports available on the system into ‘software’ (such as Pure Data, Super Collider, etc…) and ‘hardware’ ones (such as MIDI DIN5, external USB controllers, touchosc2midi, pisound-ctl, etc…), and automatically makes the connections between the hardware and software ports as soon as a new port appears. If a device or software has more than single MIDI input and output, only the first pair gets used.
I think this covers most of the user use cases, but of course some special case configuration may be necessary to suit particular setup. At the moment this facility is not implemented, but we’d be very interested in feedback or even pull requests for the tool.