pan m

Constant gain^2 pan with param and modulation inputs
Author: Smashed Transistors
License: LGPL
Github: tiar/spat/pan m.axo

Inlets

frac32buffer input

frac32 pan control

Outlets

frac32buffer output

frac32buffer output

Parameters

frac32.s.map pan

Declaration
int32_t gLeft, gRight;
Control Rate
int32_t a = __USAT((inlet_pan + param_pan) + (1 << 27), 28) << 2; // q30
SINE2TINTERP(a, gRight)
SINE2TINTERP(a + (1 << 30), gLeft)
Audio Rate
outlet_left = ___SMMUL(gLeft, inlet_in) << 1;
outlet_right = ___SMMUL(gRight, inlet_in) << 1;

Privacy

© 2024 Zrna Research