need help about "zl iter object"

all's icon

Hi,

What is my trouble :
I want to separate a list (my starting point, of variable lengh) in several lists of 7 integrers.
Then, I want to associate with each list of 7 integrers, a number : 0 for the first list, one for the second list, three for the third list.... (as for the listfunnel object but for list and not for integrers only).
Because, I want to include theses various lists in a "coll" object.

(I feel I have to use "zl iter" object but I don't know how get this news list of 7 integrers in max).

Thank you for your help.

Best regards

Alexandre

o s's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Like this?

all's icon

Hi,

Thank you for your help.
However, with your patch, I obtain this result in "coll" object :

1, 2 3 4 5 6 7;
8, 9 10 11 12 13 14;
15, 16 17 18 19 20 21;

And I need to obtain :

1, 2 3 4 5 6 7;
2, 9 10 11 12 13 14;
3, 16 17 18 19 20 21;

Do you know how get this last result ?

Best regards

Alexandre

all's icon

Sorry,

I made an error:
I'd like to get this one in "coll" object :
(to add 1,2,3... before each list of 7 integrers)

1, 1 2 3 4 5 6 7
2, 8 9 10 11 12 13 14
3, 15 16 17 18 19 20 21

Thank you

all's icon
Max Patch
Copy patch and select New From Clipboard in Max.

thanks to your assistance, I built what I wanted :

o s's icon
Max Patch
Copy patch and select New From Clipboard in Max.

if your list have a different length:

:-)

all's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Yes, you're right.
But, it's perfect with "/7" object after "zl len" object :

:-)

o s's icon

you are right- I overlooked it...