[PD] can a [clone] instance determine the total number of clones?

Christof Ressi info at christofressi.com
Wed Mar 3 23:51:40 CET 2021


I can imagine adding a flag to [clone] to automatically pass the number 
of instances as the second argument:

[clone -n foo 20] == [clone foo 20 20]

but I'm not sure it's worth it...

On 03.03.2021 22:11, IOhannes m zmölnig wrote:
> On 3/3/21 9:34 PM, Christof Ressi wrote:
>> Yes, [clone foo 20 20] might look ugly,
>
> well.
> otoh it looks quite elegant inside the cloned abstraction:
> $1 - id of current instance
> $2 - number of instances
> $3... - other args
>
> i can't think of an interface to get the total number of instances 
> inside the abstraction that is not much, much uglier.
>
> somethiung like
>
> [clones(
> |
> [pdcontrol]
> |
>
> :facepalm:
>
> gfmards
> IOhannes
>
>
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20210303/8f0704f1/attachment-0001.htm>


More information about the Pd-list mailing list