lp m a

2-pole resonant low-pass filter (biquad) Act inlet turns code on/off. This saves a few percentage of DSP.
Author: Johannes Taelman - Edited by Jaffasplaffa
License: BSD
Github: jaffa/filt/lp m a.axo

Inlets

bool32 act

frac32buffer filter input

frac32 pitch

frac32 filter resonance

Outlets

frac32buffer filter output

Parameters

frac32.s.map.pitch pitch

frac32.u.map.filterq reso

Declaration
biquad_state bs;
biquad_coefficients bc;
Init
biquad_clearstate(&bs);
Control Rate
if (inlet_act) {
  int32_t freq;
  MTOF(param_pitch + inlet_pitch, freq);
  biquad_lp_coefs(&bc, freq,
                  INT_MAX - (__USAT(inlet_reso + param_reso, 27) << 4));
  biquad_dsp(&bs, &bc, inlet_in, outlet_out);
}

Privacy

© 2024 Zrna Research