ratioVCA

Set Ratio between incoming and outgoing value
Author: Remco van der Most
License: BSD
Github: sss/math/ratioVCA.axo

Inlets

frac32 in

int32.positive Multiply

int32.positive Divide

Outlets

frac32 out

Control Rate
int64_t ratio;
if (inlet_Divide) {
  float inf = inlet_Divide << 21;
  ratio = ((int)(281474976710656.f / inf) * inlet_Multiply) >> 6;
} else
  ratio = 1 << 27;

outlet_out = ___SMMUL(ratio << 3, inlet_in << 2) * 64;

Privacy

© 2024 Zrna Research