frac32 decay time
bool32.rising trigger
frac32buffer.positive envelope output
frac32.u.map 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;
}
outlet_env = val;
val -= ___SMMUL(val, (param_d + inlet_d) >> 1);