frac32buffer audio input
frac32 gain input
frac32buffer output
int32_t _in = 0, g = 0, fg = 0, ffg = 0;
if ((inlet_in > 0) != (_in > 0)) {
g = inlet_gain;
}
fg = (g + fg) >> 1;
ffg = (fg + ffg) >> 1;
outlet_out = ___SMMUL(_in, ffg) << 5;
_in = inlet_in;