quadrant

crossfade between four inputs
Author: Remco van der Most
License: BSD
Github: sss/mix/quadrant.axo

Inlets

frac32.positive control

frac32.positive y

frac32buffer input

frac32buffer input

frac32buffer i3

frac32buffer i4

Outlets

frac32buffer output

Control Rate
int32_t ccomp1 = (1 << 27) - inlet_x;
int32_t ccomp2 = (1 << 27) - inlet_y;
Audio Rate
int32_t a = ___SMMUL(inlet_i2 << 3, inlet_x << 2);
a += ___SMMUL(inlet_i1 << 3, ccomp1 << 2);
int32_t b = ___SMMUL(inlet_i4 << 3, inlet_x << 2);
b += ___SMMUL(inlet_i3 << 3, ccomp1 << 2);
int32_t c = ___SMMUL(b << 3, inlet_y << 2);
c += ___SMMUL(a << 3, ccomp2 << 2);
outlet_o = c;

Privacy

© 2024 Zrna Research