bool32.risingfalling trigger
frac32.bipolar attack time
frac32.bipolar decay time
frac32.positive envelope output
frac32.s.map.klineartime.exp a
frac32.s.map.klineartime.exp d
int32_t val;
val = 0;
if (inlet_trig > 0) {
int32_t t;
int32_t at = param_a + inlet_a;
MTOF(-at, t);
val += t >> 6;
} else {
int32_t t;
int32_t dt = param_d + inlet_d;
MTOF(-dt, t);
val -= t >> 6;
}
val = __USAT(val, 27);
outlet_env = val;