[PD] Send Key Commands to PD w/ -nogui without X (from console)

me.grimm megrimm at gmail.com
Thu Mar 14 21:38:36 CET 2013


hey! that was pretty brilliant!

now w/ -stderr also prints to terminal:

(pd -nogui -stderr -open netreceive-help.pd &); sleep 5 && pdsend 3000

> Maybe there's a shell guru here who can tell you how to wrap it up in
> a script that automatically sends messages on each keydown event. :)

yes!

m



On Thu, Mar 14, 2013 at 4:27 PM, Jonathan Wilkes <jancsika at yahoo.com> wrote:
> ----- Original Message -----
>
>> From: me.grimm <megrimm at gmail.com>
>> To: Jonathan Wilkes <jancsika at yahoo.com>
>> Cc: James Dunn <james at 4thharmonic.com>; pd_list Listserve <pd-list at iem.at>
>> Sent: Thursday, March 14, 2013 3:47 PM
>> Subject: Re: [PD] Send Key Commands to PD w/ -nogui without X (from console)
>>
>>>  3) the 'pdsend' program waits for FUDI input
>>
>> this might be the best solution for now until i take a look into the
>> shell scripting you suggested. although, how to make it all on one
>> line (one command). Variations in this:
>>
>> megrimm-mbp:~ megrimm$ (pd -open netreceive-help.pd &) ; (pdsend 3000)
>>
>> fail or me.
>
> I don't understand networking very well, but it looks like the netreceive
> has to bind to the port first, and I think your script only waits until pd
> process sucessfully starts (i.e., doesn't wait for it to load the patch) before
> doing 'pdsend'.
>
> Quick and dirty:
> (pd -open netreceive-help.pd &); sleep 5 && pdsend 3000
>
> That way pdsend waits five seconds before executing, and the patch
> should be loaded by then.
>
> Maybe there's a shell guru here who can tell you how to wrap it up in
> a script that automatically sends messages on each keydown event. :)
>
> -Jonathan
>



-- 
____________________
m.e.grimm | m.f.a | ed.m.
megrimm at gmail.com
_________________________________



More information about the Pd-list mailing list