xfade

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

IO Variants: 3


Variant: 1

Inlets

frac32buffer input

frac32buffer input

frac32.positive control

Outlets

frac32buffer output

Control Rate
int32_t ccompl = ((128 << 20) - inlet_c);
Audio Rate
{
  int64_t a = (int64_t)inlet_i2 * inlet_c;
  a += (int64_t)inlet_i1 * ccompl;
  outlet_o = a >> 27;
}

Variant: 2

Inlets

frac32 input

frac32 input

frac32.positive control

Outlets

frac32 output

Control Rate
{
  int64_t a = (int64_t)inlet_i2 * inlet_c;
  a += (int64_t)inlet_i1 * ((128 << 20) - inlet_c);
  outlet_o = a >> 27;
}

Variant: 3

Inlets

frac32buffer.positive control

frac32buffer input

frac32buffer input

Outlets

frac32buffer output

Audio Rate
{
  int64_t a = (int64_t)inlet_i2 * inlet_c;
  a += (int64_t)inlet_i1 * ((128 << 20) - inlet_c);
  outlet_o = a >> 27;
}

Privacy

© 2024 Zrna Research