need help about "zl iter object"

Sep 24, 2011 at 9:46am

need help about "zl iter object"

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

#59018
Sep 24, 2011 at 12:31pm

Like this?

– Pasted Max Patch, click to expand. –
#212043
Sep 24, 2011 at 1:25pm

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

#212044
Sep 24, 2011 at 1:29pm

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

#212045
Sep 24, 2011 at 2:00pm

thanks to your assistance, I built what I wanted :

– Pasted Max Patch, click to expand. –
#212046
Sep 24, 2011 at 3:24pm

if your list have a different length:

– Pasted Max Patch, click to expand. –

:-)

#212047
Sep 24, 2011 at 4:19pm

Yes, you’re right.
But, it’s perfect with “/7″ object after “zl len” object :

– Pasted Max Patch, click to expand. –

:-)

#212048
Sep 24, 2011 at 4:44pm

you are right- I overlooked it…

#212049

You must be logged in to reply to this topic.