[PD-dev] pyx shell replacement

Thomas Grill gr at grrrr.org
Tue Jan 29 12:17:04 CET 2008


>

Hi Ben,

> Is there any flext/pyx magic for converting from python types to PD  
> types?
>
> The way I'm using shell has two cases:
>
> 1. it only returns a single number (cpu or memory usage)
>
> 2. it executes an xset command, and does not care about output.
>
> So for now I'm assuming these cases.
>
> Ideally it would be nice if a command output this: "0 10 0.3" then
> outlet would send a list of three floats. "0 dog" as a message of a
> float and a symbol etc..
>

this is done exactly like this by the py/pyext external.
Attached is a patch and a script that can act as a shell replacement.

gr~~~


-------------- next part --------------
A non-text attachment was scrubbed...
Name: shell-test.pd
Type: application/octet-stream
Size: 897 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20080129/5d0b9cac/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: shell.py
Type: text/x-python-script
Size: 357 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20080129/5d0b9cac/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2407 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20080129/5d0b9cac/attachment-0001.bin>


More information about the Pd-dev mailing list