Forums > MaxMSP

need help about "zl iter object"


all
September 24, 2011 | 9:46 am

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
September 24, 2011 | 12:31 pm

Like this?

– Pasted Max Patch, click to expand. –


all
September 24, 2011 | 1:25 pm

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
September 24, 2011 | 1:29 pm

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
September 24, 2011 | 2:00 pm

thanks to your assistance, I built what I wanted :

– Pasted Max Patch, click to expand. –


o s
September 24, 2011 | 3:24 pm

if your list have a different length:

– Pasted Max Patch, click to expand. –

:-)



all
September 24, 2011 | 4:19 pm

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

– Pasted Max Patch, click to expand. –

:-)



o s
September 24, 2011 | 4:44 pm

you are right- I overlooked it…


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