divScale

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/divScale.axo

Inlets

frac32 input

frac32 add

int32 D

Outlets

frac32 output

Parameters

frac32.s.map amp

Control Rate
outlet_out = (___SMMUL(param_amp << 3, inlet_in << 2)) / inlet_D + inlet_add;

Privacy

© 2024 Zrna Research