ahd m

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

Inlets

frac32 attack time

frac32 decay time

bool32.risingfalling gate

Outlets

frac32.positive envelope output

Parameters

frac32.u.map.kdecaytime a

frac32.u.map.kdecaytime d

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

Privacy

© 2024 Zrna Research