bool32.rising start
bool32.rising stop
bool32.rising pause triggering when true
int32.positive repetitive pulse
bool32.pulse repetitive pulse
int pstart;
int pstop;
int po;
int state;
pstart = 0;
pstop = 0;
po = 0;
state = 0;
if ((inlet_start > 0) && !pstart) {
state = 1;
pstart = 1;
}
if (pstart && !(inlet_start > 0))
pstart = 0;
if ((inlet_stop > 0) && !pstop) {
state = 0;
pstop = 1;
}
if (pstop && !(inlet_stop > 0))
pstop = 0;
outlet_o = (state & 1) << 27;
if (!(inlet_pause > 0))
if (state > 0)
state++;
outlet_count = (state >> 1);