[PD] Pd --> Python, IPC, FUDI, pdreceive, et cetera !

IOhannes m zmoelnig zmoelnig at iem.at
Wed Jan 23 12:50:31 CET 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2013-01-23 12:45, Lorenzo Sutton wrote:
> 
> On 23/01/13 10:28, IOhannes m zmoelnig wrote:
>> On 2013-01-23 10:22, Lorenzo Sutton wrote:
>>>> it seems your example is missing the newline (;\n). iirc I've
>>>> had a few pd lockups when sending lots of messages from
>>>> Processing without the newline.
>>> Good to know, and easy to add to the script. And of course you 
>>> wouldn't really be hard-coding stuff like that. Just for
>>> curiosity, how many is 'lots'?.
> Actually... I'm not sure the "\n" is really so relevant for
> *sending* to Pd, as if I understand correctly the ";" is...
>> [netsend] will only emit the message once it receives the
>> terminator. so it has to buffer all the data, till it encounters
>> the terminator. and since the term never comes, it will
>> eventually get out of memory. (and long before that it will start
>> to choke, but *when* is really depending on your system)
> 
> Ok.. but in the example there is no [netsend]... there is
> [netreceive] and Python is doing the sending through sockets.

that was a typo on my side, i meant to write [netreceive].

([netsend]  doesn't need to wait for a terminating semicolon/newline,
since it gets pre-parsed Pd-messages any how; only [netreceive] has to
translate byte-streams into Pd-messages, and it does so by splitting
the streams at ";\n")

fgamsdr
IOhannes
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlD/zoAACgkQkX2Xpv6ydvRuyACfQOwzcISnF9p1KDgYZFOms6Dc
tlAAn0VziNfZBSJvNztjBWFuCvhVTUNf
=DoSy
-----END PGP SIGNATURE-----



More information about the Pd-list mailing list