IO Variants: 2
Variant: 1
frac32 input
frac32.bipolar output
int32_t ts = __SSAT(inlet_in, 28);
int32_t tsq31 = ts << 3;
int32_t tsq31p3 = ___SMMUL(tsq31, ___SMMUL(tsq31, tsq31));
outlet_out = ts + (ts >> 1) - (tsq31p3);
Variant: 2
frac32buffer audio input
frac32buffer.bipolar audio output
int32_t ts = __SSAT(inlet_in, 28);
int32_t tsq31 = ts << 3;
int32_t tsq31p3 = ___SMMUL(tsq31, ___SMMUL(tsq31, tsq31));
outlet_out = ts + (ts >> 1) - (tsq31p3);