bool32.risingfalling gate
frac32.positive envelope output
frac32.s.map a
frac32.s.map d
int32_t val;
val = 0;
if (inlet_gate > 0)
val = (1 << 27) - (___SMMUL((1 << 27) - val, param_a) << 1);
else
val = ___SMMUL(val, param_d) << 1;
outlet_env = val;