hd lin m

hold/decay envelope, linear ramp, modulation input extended range
Author: Johannes Taelman
License: BSD
Github: env/hd lin m.axo

Inlets

bool32.risingfalling trigger

frac32.bipolar decay time

Outlets

frac32.positive envelope output

Parameters

frac32.s.map.klineartime.exp d

Declaration
int32_t val;
Init
val = 0;
Control Rate
if (inlet_trig > 0) {
  val = 1 << 27;
} else {
  int32_t t;
  int32_t dt = param_d + inlet_d;
  MTOF(-dt, t);
  val -= t >> 6;
  if (val < 0)
    val = 0;
}
outlet_env = val;

Privacy

© 2024 Zrna Research