How to extrack specific indexes from a list and relist them

F_Dos's icon

What is the best method to extract specific elements from a list and to collect them together to a new list?

the list example in the patch will arrive at 250Hz intervals

the pak object will trigger the list 3 time. how this can be avoided?

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

TFL's icon

Your issue could be solved by replacing [pak] by [pack], but what you are really looking for is [zl.indexmap].

EDIT: when it comes to lists, check the help file of the [zl] object and see everything that can be done with zl objects.

Michael Reichmann's icon

I am not completely sure I understand the issue, but you could use pack instead of pak.
With pack, only the leftmost inlet is hot, so the list is triggered once. With pak, every inlet is hot, so it triggers three times.

tiago morais morgado's icon

use zl nth jstrig or node.script

F_Dos's icon

zl.indexmap is what I was looking for! thanks!