bool32.rising trigger
frac32.bipolar decay time
frac32.positive envelope output
frac32.s.map.klineartime.exp d
int32_t val;
int ntrig;
val = 0;
ntrig = 0;
if ((inlet_trig > 0) && !ntrig) {
val = 1 << 27;
ntrig = 1;
} else {
if (!(inlet_trig > 0))
ntrig = 0;
int32_t t;
int32_t dt = param_d + inlet_d;
MTOF(-dt, t);
val -= t >> 6;
if (val < 0)
val = 0;
}
outlet_env = val;