frac32buffer audio input
frac32buffer.bipolar audio output
int32 stack
int32_t SOFT(int32_t in, int stack) {
for (int i = 0; i < stack; i++) {
int32_t ts = in;
int32_t tsq31 = ts << 3;
int32_t tsq31p3 = ___SMMUL(tsq31, ___SMMUL(tsq31, tsq31));
in = ts + (ts >> 1) - (tsq31p3);
}
return in;
}
int32_t tmp = __SSAT(inlet_in, 28);
tmp = SOFT(tmp, param_stack);
outlet_out = tmp;