filter range

combination of lp1 and hp1.'basefreq' sets the base frequency,'width' sets the frequency range
Author: Robert Schirmer
License: BSD
Github: rbrt/fx/filter range.axo

Inlets

frac32 cutoff frequency

frac32 width

frac32buffer input

Outlets

frac32buffer output

Parameters

frac32.u.map basefreq

frac32.u.map width

Declaration
int32_t val;
int32_t val2;
Init
val = 0;
val2 = 0;
Control Rate
int32_t f;
MTOF(param_basefreq + inlet_basefreq, f);

int32_t f2;
MTOF(__SSAT(param_width + inlet_width + param_basefreq + inlet_basefreq, 28),
     f2);
Audio Rate
val = ___SMMLA((inlet_in - val) << 1, f, val);
int32_t out = inlet_in - val;

val2 = ___SMMLA((out - val2) << 1, f2, val2);
outlet_out = val2;

Privacy

© 2024 Zrna Research