Forums > MaxMSP

coll renumber question

September 7, 2009 | 10:59 pm

Hello,

Is there a solution to tell coll to renumber its contents with maximum 16 values ? It should not go above 16 but rather start on 1 again. I have a 16- items long list and want to resort it in a closed loop of 16 steps…


September 7, 2009 | 11:38 pm

Have a look in the [p sort_and_swap] subpatch in the [coll] help file, "sort -1 -1, renumber 1" might work for you. As you are dealing with lists then perhaps [zl sort] would be more useful. If this isn’t helping perhaps post a patch to better illustrate your problem.

lh


September 9, 2009 | 9:36 pm

Sadly nothing of coll-commands helps, and I have build a workaround for this. Basically I reorder the coll contents with [zl rot] and send it back again to coll:

– Pasted Max Patch, click to expand. –

September 10, 2009 | 8:29 am
Quote:
Is there a solution to tell coll to renumber its contents with maximum 16 values ? It should not go above 16 but rather start on 1 again. I have a 16- items long list and want to resort it in a closed loop of 16 steps…

If that would mean that there are multiple entries with the same index, then that would not work.

_
johan


September 10, 2009 | 3:18 pm

you are right, not with coll only. The index is always the same, but I’m happy now with my coll–> zl solution, it works very well !


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