Process each item in a list separately?

agargara's icon

Hello, I have a basic Max question. I want to process each item in a list of variable size separately, for example dividing each number by two. I know I can use [zl iter] to iterate through the list, but I can't figure out how to put the list back together. [pack] and [join] don't work because of multiple inlets. [zl stream] has an overlap, so it doesn't work. [thresh] almost works but it's too unreliable for my usage. Is there a simple way to do this?

Edit: I just remembered I can use [vexpr] to perform most math operations on a list. However, it seems it doesn't do it for each item, you have to specify the arguments.

agargara's icon

Oh, I figured it out! I need to use [zl group] to put it back together.

Hope this helps somebody as confused as me. :)

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

or zl.join

agargara's icon

Thanks for the example!

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

founded zl lace
zz

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

Or…