Is there a possibility to distinguish MIDI devices in PD on PatchboxOS? If I try to increase the MIDI Import count greater than 1 in Alsa Midi Settings, it will always switch back to 1. I tried launching PD NOT with the button to avoid the input flags set by the btn-script but this doesn’t have an effect.
In Patchage I can see the different devices by name but PD has only one input also there.
ok I kept playing with that and found an interesting thing: It is possible to change the device input count only the number PD displays in the pref window always sticks at 1. I had to increase the value and press apply this immediately increases the count in Patchage to 4 and even after a reboot it still is 4. To address those devices its via MIDI channel count dev1 1-16, dev2: 17-32 etc
One question ist left over:
if I patch the devices in Patchage on different Ports eg my second MIDI controller to Port2 it will work but after reboot its all reconnected to port 1 again. Is there a way to save the Patchage state?
thanks
Yes, amidiauto will reconnect every hw device to the first software port. You may edit /etc/amidiauto.conf rules file to customize the behavior a bit (search forum posts for some examples of the configuration). It does currently work with only the first port of multi-port software or hardware. We plan to add multi-port support for amidiauto in a future update.
Not sure if there’s other means to have the connections set up automatically. There’s always ‘udev rules’ you could create, like discussed here: Midi connection manager - they get executed automatically on various hardware events, like USB device getting connected to the system.
thanks for your advice I will check it and report if it and how worked out. So far I am working with 4 USB devices connected to the pi, 2 of them using Mackie protocol which makes it a bit complicated at one stage to not interfere with each other since Mackie protocol can not be split by midi channel. in short it would be great to have official multi-port support on patchboxOS.
well masking works in a way but If I mask, connect stuff and reboot everything is disconnected after. It also won´t connect after PD launch
I believe the problem ls after booting the OS and before starting PD since the virtual pd ports are not there for connection before. What it needs is some service which makes connections after pd has launched. In Max on OSX and Win there is an external to use the terminal. I didnt find one in PD, If there were one it could call some amidi commands to make connections after pd launch
That’s the purpose of amidiauto, to connect things together dynamically and on boot Just that it currently supports connections to the first port of an ALSA client…
Check out the Pure Data launcher script: /usr/local/patchbox-modules/upredata/launch.sh - it has a block for delayed aconnect calls, you could modify that locally according to your needs.