EnvAHDmod

attack hold decay envelope with modulation inputs, factory object with knobs removed
Author: Johannes Taelman Albert van der Zee
License: BSD
Github: azaxo/ctrl/EnvAHDmod.axo

Inlets

bool32.risingfalling gate

frac32 attack time

frac32 decay time

Outlets

frac32.positive envelope output

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

Privacy

© 2024 Zrna Research