xfade stereo

stereo crossfade between two inputs
Author: Johannes Taelman phi
License: BSD
Github: phi/mix/xfade stereo.axo

Inlets

frac32buffer input

frac32buffer input

frac32buffer L2

frac32buffer R2

frac32.positive control

Outlets

frac32buffer output

frac32buffer out

Control Rate
int32_t ccompl = ((128 << 20) - inlet_c);
int32_t ccompl1 = ((128 << 20) - inlet_c);
Audio Rate
{
  int64_t a = (int64_t)inlet_R1 * inlet_c;
  a += (int64_t)inlet_L1 * ccompl;
  outlet_l = (a >> 27);
  int64_t b = (int64_t)inlet_R2 * inlet_c;
  b += (int64_t)inlet_L2 * ccompl1;
  outlet_r = (b >> 27);
}

Privacy

© 2024 Zrna Research