integrator leaky

cumulative sum, saturating to +-64 units
Author: Johannes Taelman
License: BSD
Github: filter/integrator leaky.axo

IO Variants: 2


Variant: 1

Inlets

frac32buffer input

Outlets

frac32buffer output

Declaration
int32_t acc;
Init
acc = 0;
Audio Rate
acc += inlet_in;
acc -= acc >> 14;
acc = __SSAT(acc, 28);
outlet_out = acc;

Variant: 2

Inlets

frac32 input

Outlets

frac32 output

Declaration
int32_t acc;
Init
acc = 0;
Control Rate
acc += inlet_in;
acc -= acc >> 14;
acc = __SSAT(acc, 28);
outlet_out = acc;

Privacy

© 2024 Zrna Research