Forums > MaxMSP

Clone a list or matrix

April 11, 2011 | 4:55 pm

Hi I’m trying to clone a matrix (or list) without useing the uzi object
For example I have this list:
0 0.25 0.5 0.75 1
and I want a list of 17 elements where the first list is repeated until the second is full
0 0.25 0.5 0.75 1 0 0.25 0.5 0.75 1 0 0.25 …. and so on
maybe is possible with jit.expr?
jit.concat is not good because i have to clone more than two time.
Anyone can show me a good way without useing the uzi object?
Thanks so much.


April 11, 2011 | 5:20 pm

Just found the Lrepeat object that repeat a list n times!
Very good but if you want repeat a list 2.5 time?
Because Lrepeat doesn’t accept float.
I continue to try…


April 11, 2011 | 5:32 pm

There are lots of ways to do this, but here is one using jit.rota:

– Pasted Max Patch, click to expand. –

April 11, 2011 | 5:42 pm

exactly what I was looking for.
Thank you very much!


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