I can start Pure data with the Pisound button fine. Unfortunately for it to see the connected USB midi devices (it doesn’t recognise any USB devices no matter which USB port you connect them to) I have to restart amidiminder so that after loading Pure Data it can then apply the connection rules set out in the amidiminder.rules. Perhaps, a solution could be that when pressing the button to start Pure Data it also restart midiminder after Pure Data has loaded but this is way beyond my ability to script it.
How does your rules file look like?
Did you manage to figure Amidiminder key info missing out?
the only rule I have managed to get to work consistently (using a manual restart of amidiminder) is this:
“nanoKONTROL2 → Pure Data
12Step → Pure Data”
every other combination using
“Pure Data Midi-In 0” or “Pure Data Midi-in:0” 36:0 → 131:0 etc etc etc has not worked.
But with the one that works I have to restart amidiminder manually. It would be great if this just started after loading the button patch. Not sure why on startin the Pure Data patch via the button it can’t see the USB devices though
I should add that this is for the button only. It connects to the correct midi devices if I start Pure Data by clicking on its desktop item.
I solved it by altering the launch.sh script in usr/local/Pure-Data Patches. Now to some how fix the patchbox Pure Data module errors so I can load the PD patch on start up
Did you install amidiminder from the .deb package? If so, it should have installed a service that starts it on system boot. Running systemctl you can check:
patch@patchbox:~ $ sudo systemctl status amidiminder.service
● amidiminder.service - ALSA MIDI minder daemon
Loaded: loaded (/lib/systemd/system/amidiminder.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2024-01-02 07:18:00 PST; 9 months 29 days ago
Main PID: 436 (amidiminder)
Tasks: 1 (limit: 2199)
Memory: 1.9M
CGroup: /system.slice/amidiminder.service
└─436 /usr/bin/amidiminder -f /etc/amidiminder.rules
Jan 02 07:18:01 patchbox amidiminder[436]: adding rule bicycle:1 --> Sonic Potions:*
Jan 02 07:18:01 patchbox amidiminder[436]: adding rule bicycle:1 --> Launchpad Pro:1
Jan 02 07:18:01 patchbox amidiminder[436]: adding rule bicycle:1 --> Midihub:0
Jan 02 07:18:01 patchbox amidiminder[436]: adding rule Wave:* --> pisound:*
Jan 02 07:18:01 patchbox amidiminder[436]: adding rule Wave:* --> MicroMonsta:*
Jan 02 07:18:01 patchbox amidiminder[436]: adding rule Wave:* --> HYDRASYNTH:*
Jan 02 07:18:01 patchbox amidiminder[436]: adding rule Wave:* --> Midihub:0
Jan 02 07:18:01 patchbox amidiminder[436]: adding rule *:* -x-> pisound-ctl:*
Jan 02 07:18:01 patchbox amidiminder[436]: port added Midi Through:Midi Through Port-0 [14:0]
Jan 02 07:18:01 patchbox amidiminder[436]: port added Midi Through:Midi Through Port-0 [14:0]
If the Loaded: line doesn’t say enabled, try running
sudo systemctl enable amidiminder.service
sudo systemctl start amidiminder.service