vcf x2

Oversampled 2-pole resonant low-pass filter (biquad), filter updated at k-rate
Author: Johannes Taelman, Jan Hofmann
License: BSD
Github: jho/filter/vcf x2.axo

Inlets

frac32buffer filter input, 1st part

frac32buffer filter input, 2nd part

frac32 cutoff frequency

frac32 filter resonance

Outlets

frac32buffer filter output, 1st part

frac32buffer filter output, 2nd part

Declaration
data_filter_biquad_A fd;
Init
init_filter_biquad_A(&fd);
Control Rate
int32_t freq = inlet_frequency;
freq -= 12 << 21;
MTOF(freq, freq);
uint32_t q_inv = INT_MAX - (__USAT(inlet_reso, 27) << 4);
f_filter_biquad_A(&fd, inlet_in__1st, outlet_out__1st, freq, q_inv);
f_filter_biquad_A(&fd, inlet_in__2nd, outlet_out__2nd, freq, q_inv);

Privacy

© 2024 Zrna Research