smooth2

exponential smooth, separate rise and fall time
Author: Johannes Taelman
License: BSD
Github: math/smooth2.axo

Inlets

frac32 input

Outlets

frac32 output

Parameters

frac32.u.map risetime

frac32.u.map falltime

Declaration
int32_t val;
Init
val = 0;
Control Rate
if (inlet_in > val)
  val = ___SMMLA(val - inlet_in, (-1 << 26) + (param_risetime >> 1), val);
else
  val = ___SMMLA(val - inlet_in, (-1 << 26) + (param_falltime >> 1), val);
outlet_out = val;

Privacy

© 2024 Zrna Research