gate/switch confusion

nedrush's icon

i'm totally confused by the gate object right now. if i have a gate object with 4 outlets, but i send a number greater than 4 into the left inlet, i still get output out of gates 4th outlet. surely if a number greater than 4 is sent into gate it shouldn't output anything. please help.

Ben Bracken's icon

This is just how gate works:

"If it is greater than the number of existing outlets, messages are sent out the rightmost outlet."

I would recommend just creating an extra outlet, which you don't have to hook up to anything.

-Ben

nedrush's icon

good call. thanks for that.

LiamCormacGould's icon

another solution might be to clip the range of numbers going to the gate