I need a gate! (like MAX/MSP)


#1

Hello,
I need a gate like the max/msp one.
https://docs.cycling74.com/max5/refpages/max-ref/gate.html

I've tried the demux object but the behaviour is different.

If I use the demux with 2 outlets, the output is continuous: if I select the first outlet it sends the signal to the first outlet while it send the default value to the second outlet.

Otherwise, if I send the signal to the second outlet, it continues to send the default signal to the first outlet and the incoming signal to the second outlet.

Is there a way to get a gate that sends to the outlet its incoming value only if it is open?
Thanks a lot!


#2

Axoloti is not event driven. so data always ‘flows’
You can use a mux if you want to select between two values.
But I’m not sure what your doing, this may help, or you may need to rethink the approach.


#3

thanks @thetechnobear,

Yes, I need to rethink the approach :smiley:
But I figured out by myself: with the logic/latch I can update the signal only if it is triggered. That's exactly what I needed.

Thanks again!