d

decay envelope
Author: Johannes Taelman
License: BSD
Github: env/d.axo

Inlets

bool32.rising trigger

Outlets

frac32.positive envelope output

Parameters

frac32.s.map d

Declaration
int32_t val;
int ntrig;
Init
val = 0;
ntrig = 0;
Control Rate
if ((inlet_trig > 0) && !ntrig) {
  val = 1 << 27;
  ntrig = 1;
} else {
  if (!(inlet_trig > 0))
    ntrig = 0;
  val = ___SMMUL(val, param_d) << 1;
}
outlet_env = val;

Privacy

© 2024 Zrna Research