fatbasterd

saturator The more gain, the more your ears bleed of squared signals Max sets the max-level (gain must be turned on a bit for it to work, otherwise, signal goes through unharmed... which it probably shouldn't otherwise you wouldn't use this module, would you?)
Author: Remco van der Most
License: BSD
Github: sss/dist/fatbasterd.axo

Inlets

frac32buffer in

Outlets

frac32buffer out

Parameters

frac32.u.map gain

frac32.u.map max

Audio Rate
int dir = inlet_in > 0 ? 1 : -1;
int32_t in = inlet_in > 0 ? inlet_in : -inlet_in;
int32_t gian = ___SMMUL(param_gain << 3, param_gain << 2);
float32_t gain = ___SMMUL((gian + (1 << 17)) << 2, in << 3);
gain = 1 + gain / (1 << 19);
outlet_out = ((param_max) - ((param_max)-in) / gain) * dir;

Privacy

© 2024 Zrna Research