ahd

attack hold decay envelope
Author: Johannes Taelman
License: BSD
Github: env/ahd.axo

Inlets

bool32.risingfalling gate

Outlets

frac32.positive envelope output

Parameters

frac32.s.map a

frac32.s.map d

Declaration
int32_t val;
Init
val = 0;
Control Rate
if (inlet_gate > 0)
  val = (1 << 27) - (___SMMUL((1 << 27) - val, param_a) << 1);
else
  val = ___SMMUL(val, param_d) << 1;
outlet_env = val;

Privacy

© 2024 Zrna Research