bool32.rising trig
bool32.pulse t1
bool32.pulse t2
bool32.pulse t3
bool32.pulse t4
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 == (1 * attr_delay))
outlet_t2 = 1;
else
outlet_t2 = 0;
if (count == (2 * attr_delay))
outlet_t3 = 1;
else
outlet_t3 = 0;
if (count == (3 * attr_delay))
outlet_t4 = 1;
else
outlet_t4 = 0;
if (count > (3 * attr_delay)) {
go = 0;
if (!inlet_trig)
ntrig = 0;
}