frac32buffer position input
int32.positive start position
int32.positive end position
frac32 percent of the loop (phase)
float num = inlet_pos[0] - inlet_startpos;
float den = inlet_endpos - inlet_startpos;
float frac = num / den;
outlet_percent = (1 << 27) * frac;