frac32.positive phase
frac32.positive position to reach
bool32.pulse pulse when phase == pos
int32_t _ap;
int32_t phase;
_ap = 0;
outlet_trig = 0;
phase = (inlet_phase - inlet_pos) & ((1 << 27) - 1);
if ((phase - _ap) <= 0)
outlet_trig = 1;
_ap = phase;