pan gain c

stereo balance (panorama) with gain (amp)
Author: Johannes Taelman philoop
License: BSD
Github: phi/spat/pan gain c.axo

Inlets

frac32buffer input

Outlets

frac32buffer output

frac32buffer output

Parameters

frac32.u.map.gain gain

frac32.s.map.ratio pan

Audio Rate
outlet_left = ___SMMUL((1 << 29) - (param_pan << 2), (inlet_i1 * param_gain))
              << 2;
outlet_right = ___SMMUL((1 << 29) + (param_pan << 2), (inlet_i1 * param_gain))
               << 2;

Privacy

© 2024 Zrna Research