Hello! I’m a new member of the forums, but it looks like there’s a fantastic community here that I’m excited to be a part of. Anyway, my question:
If I have a list, say 2 3 0 4 0 5 6 0 7 0 1 0 what’s an efficient way to get the index of the "1?" I’ve tried looking at the documentation of the zl object, but I can’t find anything that fits what I’m looking for.
zl sub will return each index in the max window but only the last index will be viewable within the patch. If you are dealing with multiple occurrences of a value in a list, then your best bet is to combine [zl sub] and [zl group]. great combo… powerful and compact.
– Pasted Max Patch, click to expand. –
Copy all of the following text. Then, in Max, select New From Clipboard.