DCA

De clicked "Digital" Controlled Amplifier: multiplies "in" and "gain" inputs. The gain input is NOT INTERPOLATED, DCA is "anti "clicked by updating gain at zero crossings of the input. This allows very sharp attack transients without additional clicks.
Author: T?Smashed Transistors
License: LGPL
Github: tiar/gain/DCA.axo

Inlets

frac32buffer audio input

frac32 gain input

Outlets

frac32buffer output

Declaration
int32_t gain, _in;
Init
gain = _in = 0;
Audio Rate
if ((inlet_in > 0) != (_in > 0)) {
  gain = inlet_gain;
}
outlet_out = ___SMMUL(_in, gain) << 5;
_in = inlet_in;

Privacy

© 2024 Zrna Research