Forums > MaxMSP

gate/switch confusion

Feb 16 2012 | 6:53 pm

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.

Feb 16 2012 | 7:15 pm

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.


Feb 16 2012 | 7:50 pm

good call. thanks for that.

Feb 16 2012 | 8:24 pm

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

Viewing 4 posts - 1 through 4 (of 4 total)

Forums > MaxMSP