bool32.risingfalling bool
bool32.pulse change
bool32.pulse 0to1
bool32.pulse 1to0
bool ontrig;
bool offtrig;
offtrig = 1;
outlet_0to1 = 0;
outlet_1to0 = 0;
outlet_change = 0;
if (inlet_bool && !ontrig) {
ontrig = 1;
outlet_0to1 = 1;
outlet_change = 1;
}
if (!inlet_bool)
ontrig = 0;
if (!inlet_bool && !offtrig) {
offtrig = 1;
outlet_1to0 = 1;
outlet_change = 1;
}
if (inlet_bool)
offtrig = 0;