Forums > MaxMSP

incrementing gate

September 1, 2013 | 9:43 am

Hi – I’m trying to understand gate, and use a couple of conditions to trigger different states. I’ve attached a screenshot, but basically all I want to do is, if N occurs, increment the integer so that at the very least gate 1 is open. But if P is also detected, increment the integer so that gate 2 is open.

I set this up, but I can’t get my messages to print out. Anyone know what I’m doing wrong?

  1. Screen-Shot-2013-09-01-at-12.33.54-PM


September 1, 2013 | 10:57 am

check out the helpfile for [gate] – it’ll show you that you’re probably opening the gate in the correct way, but you’re not feeding anything through – the right inlet.

September 1, 2013 | 1:26 pm

Yeah, the left inlet is the door knob, the right inlet is the doorway. One opens the door, the other is the opening. Just be sure to get your order of operations right.. open the door first, then pass through.

Also, given your language ("at the very least", "also detected") I suspect you may want more than one gate open at a time? If so, you can’t do that with gate, but you can do that with [router].

September 1, 2013 | 1:32 pm

Ah – I’m embarassed to admit this but I had been opening help by option clicking, whih opens the patchers for a specified tag. Didn’t realize there was another, more descriptive help file accessible through the help menu. Thanks guys.

September 1, 2013 | 6:23 pm

[if (($i1+$i2)>1) then Single else out2 Double]


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

Forums > MaxMSP