[PD] array resize in $0-abstraction

Federico xaero at inwind.it
Sat Mar 11 17:30:29 CET 2006


Hello list!

I am trying to follow some general standards while writing abstractions 
with pure-data.
One of these, is the habit of prepending $0- to send/receives, so that 
it is possible have more than one instance of an abstraction.

All it is ok except when I use arrays in my abs.

i tried to use the message:
;
$0-myarray resize $1;

or even:
[nbx]
 |
[resize $1(
 |
[s $0-myarray]

but pd outputs rispectively:
error: 1002-sample: no such object
error: 0-sample: no such object

how I can resize arrays inside multi-instance abstractions?




More information about the Pd-list mailing list