frac32buffer input
frac32buffer output
frac32.u.map rate
int32_t val;
int32_t prev;
val = 0;
int32_t diff = inlet_in - val;
int32_t sign = diff > 0 ? 1 : -1;
diff = diff > 0 ? diff : -diff;
int32_t freq = ___SMMUL(param_rate << 3, param_rate << 2);
freq = ___SMMUL(freq << 3, freq << 2);
diff = diff > freq ? freq : diff;
diff = diff * sign;
val += diff;
outlet_out = val;
prev = inlet_in;