divScaleA

Multiply (attenuate) with a constant value, then divide by an integer. To be used with the divide-outputs of the table-oscillators/LFO's to scale the input back to maximal quantification 4 steps, whatever the amount of quantification of the quantizer of the oscillator/LFO.
Author: Remco van der Most
License: BSD
Github: sss/math/divScaleA.axo

Inlets

frac32buffer in

frac32buffer add

frac32buffer amp

int32 D

Outlets

frac32buffer out

Parameters

frac32.s.map amp

Audio Rate
outlet_out = (___SMMUL(__SSAT(param_amp + inlet_amp, 29) << 3, inlet_in << 2)) /
                 inlet_D +
             inlet_add;

Privacy

© 2024 Zrna Research