expoGlide

exponential glide When glide is zero, there is no glide! When input glideOFF is high, glide is off.
Author: Remco van der Most
License: BSD
Github: sss/math/expoGlide.axo

Inlets

frac32 in

bool32 glideOFF

Outlets

frac32 out

Parameters

frac32.u.map glide

Declaration
int32_t prev;
int32_t follow;
int64_t diff;
int64_t rate;
Control Rate
if (inlet_glideOFF == 0) {
  diff = inlet_in - follow;
  rate = param_glide;
  rate = rate << 8;
  diff = (diff << 21) / ((1 << 21) + rate);
  follow += diff;
  outlet_out = follow;
  prev = inlet_in;
} else {
  outlet_out = inlet_in;
}

Privacy

© 2024 Zrna Research