bool32.risingfalling clock is running or not
int32 current time in k-rate ticks (0.333 ms)
int32_t trigstart;
int32_t trigstop;
int tc;
trigstart = 0;
trigstop = 0;
tc = 0;
if ((inlet_toggle) && !trigstart) {
tc = 0;
trigstart = 1;
} else if (!(inlet_toggle)) {
trigstart = 0;
tc = 0;
}
if (trigstart) {
tc == tc++;
}
outlet_t = tc;