[PD] dynamic-named arrays

Marcus Estes marcuse at socionomics.org
Thu Oct 2 19:56:38 CEST 2003

I'm currently working on a patch that utilizes a trick something like
this in order to have data from a single slider be written to different
arrays at will. I've having trouble debugging it though - for some
reason, the values are shifting over one every time I switch to a
different array.

Would someone be kind enough to have a look at this abstraction and
point out to me what I'm doing wrong?

Thanks. Marcus.

-----Original Message-----
From: 0 [mailto:root at 0x09.com] 
Sent: Thursday, October 02, 2003 12:30 PM
To: pd-list at iem.at
Subject: Re: [PD] dynamic-named arrays

I did it just fine, using $1 and passing a parameter "one" then "two"
"three" etc. for the various instances, then invoking the subpatch in
each instance with "pd patchname $1" to pass the unique name parameter
on to the subpatch. I was sending sinesum messages to the array and the
$1 in a message doesn't pick up the parameter "one," so I used a "symbol
$1" object to hold the parameter, then passed that to a pack obj, which
passed the parameter and other variables on to the sinesum message,
which rewrote the array. That doesn't seem very clear...
> Message: 2
> Date: Thu, 02 Oct 2003 03:34:00 +0200
> From: derek holzer <derek at x-i.net>
> To:  pd-list at iem.at
> Subject: [PD] dynamic-named arrays
> second late night abstract control-data question:
> is it just me, or is it tricky to name an array from a creation
> argument? naming the array $2-zample in an abstraction with creation 
> arguments(1 2), for example, doesn't seem to hold water, as subpatches
> [where i can see in the window title bar that the creation arguments 
> are carried through, i might add!] with a "tabread~ $2-zample" can't 
> seem to
> locate it.
> or does this work, and i am doing something else wrong? ;-)
> d.

PD-list mailing list
PD-list at iem.at
-------------- next part --------------
A non-text attachment was scrubbed...
Name: different_arrays.pd
Type: application/octet-stream
Size: 6277 bytes
Desc: different_arrays.pd
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20031002/cecd43bc/attachment.obj>

More information about the Pd-list mailing list