ratiomaxVCA

Set Ratio between incoming and outgoing value
Author: Remco van der Most
License: BSD
Github: sss/math/ratiomaxVCA.axo

Inlets

frac32 in

int32.positive Multiply

int32.positive Divide

int32 maxtimes

Outlets

frac32 out

Control Rate
float64_t ratio;
int32_t max = inlet_Multiply >= (inlet_maxtimes * inlet_Divide)
                  ? (inlet_maxtimes * inlet_Divide)
                  : inlet_Multiply;
float64_t inf = inlet_Divide;
float64_t anf = max;
ratio = anf / inf;

outlet_out = inlet_in * ratio;

Privacy

© 2024 Zrna Research