para

Notch filter (biquad)
Author: Johannes Taelman / Jan Hofmann
License: BSD
Github: jho/filter/para.axo

Inlets

frac32buffer filter input

Outlets

frac32buffer filter output

Parameters

frac32.s.map.pitch pitch

frac32.u.map.filterq reso

frac32.s.map gain

bool32.tgl on

Declaration
biquad_state bs;
biquad_coefficients bc;
jho_Para pars;
Init
biquad_clearstate(&bs);
jho_Para_init(&pars);
jho_Para_biquad_coefs(&pars, &bc);
Control Rate
if (!param_on) {
  for (int i = 0; i < BUFSIZE; ++i) {
    outlet_out[i] = inlet_in[i];
  }
  return;
}
if (jho_Para_update(&pars, param_pitch, param_reso, param_gain)) {
  jho_Para_biquad_coefs(&pars, &bc);
}
jho_biquad_dsp(&bs, &bc, inlet_in, outlet_out);

Privacy

© 2024 Zrna Research