Unpack variable numbers

Roberto 's icon

unpack list with variable numbers. I have a list that always varies (it's never the same). How can I unpack the list? The list can have 10 numbers or 100

Sébastien Gay's icon

It depends on how you want to further process each list item. [iter], for instance, is a very simple solution. It will unpack each item 1 by 1 whatever the total number of items is, but they will all be processed sequentially.

double_UG's icon

unjoin 100

TFL's icon

You can unpack a list of 10 numbers with an [unpack] with 100 outlets. Simply only the 10 leftmost outlets will be updated. A combination of [zl.iter 1] and [cycle] also work, or just a [zl.iter 1], depending on what you want to achieve with those numbers.

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

Source Audio's icon

if receiving side of unpacked list is not entirely reachable by patch cords,
you can split the list using zl.slice or use listfunnel -> forward.