[PD] Dynamic generation of $0-including objects?

Chris McCormick chris at mccormick.cx
Thu Feb 8 06:11:40 CET 2007


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
-------------- next part --------------
#N canvas 9 30 445 139 10;
#X obj 7 53 makefilename %s%d;
#X msg 7 5 $ 0;
#X obj 7 28 pack s f;
#N canvas 0 0 450 300 result 1;
#X restore 360 4 pd result;
#X msg 7 76 \; pd-result obj 10 10 test \$1;
#X connect 0 0 4 0;
#X connect 1 0 2 0;
#X connect 2 0 0 0;


More information about the Pd-list mailing list