Incoming random numbers and sequencing

Davide Ghelli's icon

Hi everyone!

I am relatively new to MaxMSP and I am struggling with a feature that I want to add to the system that I am currently designing.

I have created a simple random object that outputs numbers between 0 and 11. Then I have a coll which contains twelve objects indexed from 0 to 11.
What I would like to do is to develop a sort of multigate that allows only some of the random numbers to pass. I imagine an interface with something like a matrixctrl with 12 buttons - thus representing the numbers between 0 and 11 - and allowing only the numbers corresponding to an active button to pass. The outputted number goes into the inlet of coll and outputs a certain value.
Now, I am struggling with this part, finding an object or combination of objects that allow me to control the gate. I looked at things like route and similar objects, but I can't find the right solution.

double_UG's icon

zl.filter listfunnel

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

Source Audio's icon

No matter what you use to create a list , radiogroup, matrixctrl
or simply a list, you can pass random numbers through zl sect

zl sub outputs list indexes that match 1

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