On Thu, 2018-05-03 at 11:56 +0200, Jack wrote:
> If you have several instances of Pd, it is also doable to do
> something
> like :
> 
> pd -open yourpatch1.pd &
> PID1=$!
> pd -open yourpatch2.pd &
> PID2=$!
> 
> while true
> do
>     if [ ! -d /proc/$PID1 ]
>     then
>         pd -open yourpatch1.pd &
>         PID1=$!
>     fi
>     if [ ! -d /proc/$PID2 ]
>     then
>         pd -open yourpatch2.pd &
>         PID2=$!
>     fi
> done

If I'm not mistaken, this hogs the CPU as it will run as many
iterations per second as possible. I think a 'sleep 1' would already
help.

Roman

Attachment: signature.asc
Description: This is a digitally signed message part

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

Reply via email to