d m

decay envelope with decay time modulation input, audio rate
Author: Johannes Taelman
License: BSD
Github: pulse/d m.axo

Inlets

frac32 decay time

bool32.rising trigger

Outlets

frac32buffer.positive envelope output

Parameters

frac32.u.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;
}
Audio Rate
outlet_env = val;
val -= ___SMMUL(val, (param_d + inlet_d) >> 1);

Privacy

© 2024 Zrna Research