ok, before I go and write this … can someone tell me if the following exists
what I want is for the rPI running headless to reconnect all midi devices in a provided configuration.
now the rules of the game are simple:
- im talking ALSA
- it has to support usb devices
- it has to support virtual midi devices (like PD)
ok, so its the last two that cause the ‘issue’
we can obviously do:
aconnect "Virus TI:1" "Pure Data:0"
aconnect "Pure Data:1" "Virus TI:1"
but the issue is, when you run this you are assuming 2 things
- Pure data is running (otherwise the PD ports are not there, so it will fail)
- the USB device (virus in this case) has to be connected
if either is not the case aconnect will fail,
it will also fail if you restart PD, or restart the usb device.
yes, I could do a sytemctl script, that waits for PD, and make sure the device is already on, but thats not nice, I want it to be a bit more thorough than that…
and I also want if it fails, for it to ‘fix’ itself without the user getting involved by manually running something, hitting a button etc.
so what I want is something that takes these mappings and monitors for devices/ports to become available and then it makes them.
preferably the mapping is in a config file (rather than a script) so its easier for a user to edit.
surely this exists already?