* Roman Haefeli <reduz...@gmail.com> [2020-11-09 13:25]:
[...]
> Poor man's solution:
> 
>   put a 'sleep 5' after starting Pd.
This of course introduces a race condition. Might almost always work™.
 
> A slightly more advanced way:
> 
>   while ! aconnect --list | grep "Pure Data"; do sleep 0.1;
> 
>   Put that after firing up Pd. It continues only after "Pure Data"
>   appears in the list of available MIDI ports.
Which is much more elegant, thanks Roman. Note that this will cause
confusion when more than one Pd instance is running. A possible command
line flag to name a Pd instance for alsa-midi was discussed in the
aforementioned thread. It seems that it did not get implemented in the
end.

cheers, P



_______________________________________________
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list

Reply via email to