[PD] "get" method for Pd
jancsika at yahoo.com
Thu Nov 17 17:07:41 CET 2011
----- Original Message -----
> From: IOhannes m zmoelnig <zmoelnig at iem.at>
> To: pd-list at iem.at
> Sent: Thursday, November 17, 2011 3:33 AM
> Subject: Re: [PD] "get" method for Pd
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> On 2011-11-17 02:43, Jonathan Wilkes wrote:
>> I made a patch awhile back that added a "get" method to pd:
>> [; pd get version rcv-name( sends "version $major $minor
> $bugfix" to rcv-name
> wouldn't it be easier to use a syntax like
> [get <rcvname> <attribute>( ?
> rather than [get <attribute> <rcvname>(
> i think sending the rcvname first will make the syntax more easily
> e.g. it would allow for [tryset <rcvname> <attribute>
> <values...>( and
> the like.
I really want to avoid that syntax because while it may be the most
flexible for the current Pd implementation (e.g., one without a list atom)
it's clearest to have "get" followed directly by the thing being "gotten".
Maybe I can sidestep the issue by suggesting just to send the result
back to the "pd" symbol by forwarding it using an added "state" method
that does nothing:
[; pd get dsp(
Added benefit is that you can also state a message to pd using the "state"
method, and all pd receivers will be notified.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> -----END PGP SIGNATURE-----
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management ->
More information about the Pd-list