[PD] Dynamic generation of $0-including objects?
Luke Iannini (pd)
lukexipd at gmail.com
Thu Feb 8 08:16:02 CET 2007
Hm... I'm not sure if your patch was supposed to "work" or demonstrate
my issue, Chris... thanks for making it regardless : ).
Alexandre, not sure what you're suggesting either since [f $0] would
output the "value" of $0 rather than the actual characters "$0", which
is what I'm after.
Either way,Chris's patch has lead me to the solution, which is:
[symbol $(
|
[makefilename %s0]
|
[;
pd-mySubpatch obj 10 10 myObject $1(
Thanks to both of yas! Should probably add this to puredata.org or
something for posterity. Or a bug report since it's obviously a
kludge.
On 2/7/07, Chris McCormick <chris at mccormick.cx> wrote:
> On Wed, Feb 07, 2007 at 07:54:40PM -0700, Luke Iannini (pd) wrote:
> > I'm trying to generate objects within a subpatch using [obj( messages,
> > and I want those generated objects to have $0 as one of their
> > arguments, e.g. [myobject $0]. Using [obj x y myobject $0( gives
> > [myobject 0] (I know $0 is not for messages, just thought I'd give
> > that a try), and of course [list append $0] to the object message just
> > adds the interpreted $0 of the parent patch. I'd like to preserve the
> > "$0". Anyone know of a way to do it?
>
> Hi,
>
> I think the attached patch demonstrates what you mean.
>
> Best,
>
> Chris.
>
> -------------------
> chris at mccormick.cx
> http://mccormick.cx
>
>
More information about the Pd-list
mailing list