bool32.rising trig
bool32.pulse t1
bool32.pulse t2
spinner delay
int count;
bool ntrig;
bool go;
count = -1;
if (inlet_trig && !ntrig) {
ntrig = 1;
count = -1;
go = 1;
}
if (go)
count += 1;
if (count == 0)
outlet_t1 = 1;
else
outlet_t1 = 0;
if (count == attr_delay)
outlet_t2 = 1;
else
outlet_t2 = 0;
if (count > attr_delay) {
go = 0;
if (!inlet_trig)
ntrig = 0;
}