Combinig /replacing list entries

Soundaddicted's icon

Hi,
i'm new to max and have a (maybe) very basic problem:

Max Patch
Copy patch and select New From Clipboard in Max.

I got two lists , one have always 32 entries (list1) , the other is varying in lenght up to 32 (list2), lets say it has 16 entries.
I want to replace the entries of list1 by list2 but keep the last 16 entries in list1 as they are (until list1 also has 32, the all entries should be overwritten)..

i think its a very simple thing but with all my attempts with te zl-object i had no luck..
can anybody help?

thanks in advance
rossi

ahmet kizilay's icon

Hello,

You can implement that with a couple of zl objects using len, slice and join.

Max Patch
Copy patch and select New From Clipboard in Max.

Here is one implementation. I hope you find it useful.