frac32buffer audio input
frac32 gain input
frac32 gain2
frac32buffer output
frac32buffer out2
int32_t _in = 0, g1 = 0, fg1 = 0, ffg1 = 0, g2 = 0, fg2 = 0, ffg2 = 0;
if ((inlet_in > 0) != (_in > 0)) {
g1 = inlet_gain1;
g2 = inlet_gain2;
}
fg1 = (g1 + fg1) >> 1;
ffg1 = (fg1 + ffg1) >> 1;
outlet_out1 = ___SMMUL(_in, ffg1) << 5;
fg2 = (g2 + fg2) >> 1;
ffg2 = (fg2 + ffg2) >> 1;
outlet_out2 = ___SMMUL(_in, ffg2) << 5;
_in = inlet_in;