invcf4

quad crossfade between inv/noniverted
Author: Philoop
License: BSD
Github: phi/mix/invcf4.axo

Inlets

frac32.bipolar i1

frac32.bipolar i2

frac32.bipolar i3

frac32.bipolar i4

Outlets

frac32.bipolar o

Parameters

frac32.s.map inv

frac32.s.map inv1

frac32.s.map inv2

frac32.s.map inv3

Control Rate
{
  int64_t a = (int64_t)(inlet_i1) * (param_inv - (1 << 21));
  a -= inlet_i1 * (128 << 20) - (param_inv - (1 << 21));
  int64_t b = (int64_t)(inlet_i2) * (param_inv1 - (1 << 21));
  b -= inlet_i2 * (128 << 20) - (param_inv1 - (1 << 21));
  int64_t c = (int64_t)(inlet_i2) * (param_inv2 - (1 << 21));
  c -= inlet_i2 * (128 << 20) - (param_inv2 - (1 << 21));
  int64_t d = (int64_t)(inlet_i3) * (param_inv3 - (1 << 21));
  d -= inlet_i3 * (128 << 20) - (param_inv2 - (1 << 21));
  outlet_o = (a >> 27) + (b >> 27) + (c >> 27) + (d >> 27);
}

Privacy

© 2024 Zrna Research