Collecting numbers

moris526's icon

Hi. Help.
I need send different numbers to some collector.
And need to remove a number if its sent twice, and add it if it comes again, and so on...

I could do it with Select and toggles attached to each number, but i was looking for a simpler way, since is for 120 numbers.
Any idea?
Thanks.

Florent Ghys's icon

check out the change object

double_UG's icon

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

testcase's icon

I would recommend looking at the bag object and seeing if that could work for you.

Pedro Santos's icon

You can do it with basic zl objects:
zl.sect to detect duplicates
zl.join to add if new
zl.filter to remove if repeated

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