[PD] array resize in $0-abstraction

dafydd hughes dafydd61 at sideshowmedia.ca
Sat Mar 11 18:09:37 CET 2006


Hi Federico

I can't remember the specifics of why it's necessary, but you need to  
create a symbol for the array name.  Messages lop off the $.  I wish  
I knew more about this, but the attached patch should explain...

-------------- next part --------------
A non-text attachment was scrubbed...
Name: resize_$0.pd
Type: application/octet-stream
Size: 849 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20060311/7009d02b/attachment.obj>
-------------- next part --------------


cheers
dafydd

www.sideshowmedia.ca


On 11-Mar-06, at 11:30 AM, Federico wrote:

> 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?
>
> _______________________________________________
> PD-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/ 
> listinfo/pd-list
>



More information about the Pd-list mailing list