[PD] Pd --> Python, IPC, FUDI, pdreceive, et cetera !
Lorenzo Sutton
lorenzofsutton at gmail.com
Mon Jan 21 21:20:56 CET 2013
On 21/01/13 18:52, Pierre Massat wrote:
> Assuming that i can find a description of this protocol, how would I use
> it to communicate between Pd and Python ? I guess this more a question
> to ask in a Python forum, but still, i'd love to have at least some hints...
In python use sockets... in Pd use [netreceive] - I'm sure there's loads
of good examples out there and I'm working on some pygtk for a project
(but it's still very very early). Menwhile this is a very minimal python
-> Pd example
Lorenzo.
>
> Cheers,
>
> Pierre.
>
> 2013/1/21 Jonathan Wilkes <jancsika at yahoo.com <mailto:jancsika at yahoo.com>>
>
> ----- Original Message -----
> > From: Hans-Christoph Steiner <hans at at.or.at <mailto:hans at at.or.at>>
> > To: pd-list at iem.at <mailto:pd-list at iem.at>
> > Cc:
> > Sent: Monday, January 21, 2013 11:17 AM
> > Subject: Re: [PD] Pd --> Python, IPC, FUDI, pdreceive, et cetera !
> >
> >
> > FUDI is not just netsend/netreceive, its all Pd messages,
> including what
> > pd-gui sends to pd. Its basically space-separated data
> terminated with a
> > semi-colon and a newline i.e. ;\n
>
> Someone should add the description of the FUDI protocol to
> the man pages for pdsend/pdreceive, since its not a standard
> protocol and is slightly different from the messages people
> are used to sending from within the gui (i.e., without a terminating
> semicolon).
>
> -Jonathan
>
> >
> > .hc
> >
> > On 01/21/2013 09:42 AM, Pierre Massat wrote:
> >> Dear List,
> >>
> >> I've been working a lot with Python and Pd lately, and i would
> like to
> > have
> >> better means of communication between the two.
> >> I know next to nothing about inter-process communication, I know
> nothing
> >> about FUDI (except that it's the protocol used by pdsend and
> > pdreceive),
> >> and I have no idea what pdreceive was originally designed for. I've
> > only
> >> used the subprocess (formerly popen) module in python, but i
> don't know
> > how
> >> to use it with streams of messages coming from the standard
> output of a
> >> running process.
> >> I don't want to use libpd for now because i only need to send and
> > receive
> >> simple messages between Python and Pd.
> >>
> >> Can someone please provide a few hints ?
> >>
> >> Cheers!
> >>
> >> Pierre.
> >>
> >>
> >>
> >> _______________________________________________
> >> Pd-list at iem.at <mailto:Pd-list at iem.at> mailing list
> >> UNSUBSCRIBE and account-management ->
> > http://lists.puredata.info/listinfo/pd-list
> >>
> >
> > _______________________________________________
> > Pd-list at iem.at <mailto:Pd-list at iem.at> mailing list
> > UNSUBSCRIBE and account-management ->
> > http://lists.puredata.info/listinfo/pd-list
> >
>
>
> _______________________________________________
> Pd-list at iem.at <mailto:Pd-list at iem.at> mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
>
>
>
>
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fudi-test.pd
Type: text/x-puredata
Size: 732 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20130121/b1cb689d/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fudi-test.py
Type: text/x-python
Size: 1470 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20130121/b1cb689d/attachment.py>
More information about the Pd-list
mailing list