LPGmix

combination of a crossfader and a lowpass gate When input v goes up, crossfades from sine input to harmonics input, while opening up the filter cutoff on the harmonics input.
Author: Remco van der Most
License: BSD
Github: sss/filter/LPGmix.axo

Inlets

frac32 gain input

frac32buffer audio input

frac32buffer harmonics

Outlets

frac32buffer output

Declaration
int32_t prev;
int32_t step;
int32_t val;
Control Rate
step = (inlet_v - prev) >> 4;
int32_t i = prev;
prev = inlet_v;
int32_t freq;
Audio Rate
MTOF(i - (1 << 26) << 1, freq)
val = ___SMMLA((inlet_harmonics - val) << 1, freq, val);
int32_t out = ___SMMUL(i << 3, val - inlet_sine << 2) + inlet_sine;

outlet_o = ___SMMUL(out << 3, i << 2);
i += step;

Privacy

© 2024 Zrna Research