frac32.positive sync position
bool32.risingfalling wait
frac32buffer.positive phase in
bool32.pulse sync trigger
int csample = (inlet_pos >> 13);
int spos = (inlet_start >> 13);
if ((inlet_wait) && ((csample > (spos - 24)) && (csample < (spos + 24)))) {
outlet_trig = 1;
} else
outlet_trig = 0;