You can control the behavior of many nodes with pulses. A very useful node is flip-flop
. It acts like a virtual switch, whose states can be controlled by pulses. A pulse on SET
turns the stored MEM
value to true. RST
resets MEM
to false. And a pulse on TGL
inverses the MEM
value.
The patch shown here toggles the output boolean value each second.
Let’s experiment with the flip-flop
node.
clock
node with tweak-pulse
node.tweak-pulse
s and connect them to flip-flop
’s SET
and RST
pins.Observe how the MEM
value changes when sending several pulses to the same pin in a row.