bool32.risingfalling wait
frac32.positive pos
frac32.positive sync position
bool32.pulse sync trigger
int shift;
shift = 1 << 18;
int csample = inlet_pos;
int spos = inlet_start;
if ((inlet_wait) && ((csample > (spos - shift)) && (csample < (spos + shift))))
outlet_trig = 1;
else
outlet_trig = 0;