int32 count
int32 out
int32 range
bool32.tgl sustain
int32 range
frac32.u.map offset
frac32.u.map length
int32_t length = ___SMMUL(param_range << 3, param_length << 2);
int32_t offset = ___SMMUL(param_range << 3, param_offset << 2);
int32_t count = (inlet_count + offset -
((inlet_count + offset) / param_range) * param_range);
outlet_out = count > length ? 0 + param_sustain *param_length : count;