Forums > MaxMSP

How to append to coll?

October 22, 2010 | 7:37 pm

Is there an easy way to append an item into coll using the next index, without knowing that index? Thanks.


October 22, 2010 | 7:43 pm

i dont think this can be done with only one message.

maybe you want to (ab)use [umenu] for your application?

-110


October 22, 2010 | 7:57 pm

Here’s another somewhat kludgey way.

– Pasted Max Patch, click to expand. –

October 22, 2010 | 7:57 pm

But really, a more reasonable way would be to keep track of the last or highest index (whichever you want to use) in a counter or an int object just above coll, and then increment that by one each time you add a new item to the coll, something like this.

– Pasted Max Patch, click to expand. –

October 23, 2010 | 2:50 am

there’s a length message.

– Pasted Max Patch, click to expand. –

Viewing 5 posts - 1 through 5 (of 5 total)