#!/bin/bash
sudo /usr/local/bin/pd -nogui -rt -open /home/pi/Documents/RSP/RSP/myPatch.pd
aconnect 'Pure Data':1 'Launchpad Mini':0
aconnect 'Launchpad Mini':0 'Pure Data':0
The problem is that the aconnect-commands seem to be not executed or executed too early because the virtual midi connections are not made.
The aconnect-commands have to be done after pd is started, so how could I change the script to wait until pd is done loading?
Thanks!