ahd no m

attack hold decay envelope with modulation inputs
Author: Johannes Taelman
License: BSD
Github: rbrt/control/ahd no m.axo

Inlets

bool32.rising reset

frac32.positive a

frac32.positive d

bool32.risingfalling gate

Outlets

frac32.positive envelope output

Declaration
int32_t val;
Init
val = 0;
Control Rate
if (inlet_gate > 0)
  val = ___SMMLA((1 << 27) - val, (1 << 27) - inlet_a, val);
else
  val = ___SMMLA(val, (-1 << 27) + inlet_d, val);
if (inlet_reset)
  val = 0;
outlet_env = val;

Privacy

© 2024 Zrna Research