para x2

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

Inlets

frac32buffer filter input, 1st part

frac32buffer filter input, 2nd part

Outlets

frac32buffer filter output, 1st part

frac32buffer filter output, 2nd part

Parameters

frac32.s.map gain

frac32.s.map.pitch pitch

bool32.tgl Fx2

bool32.tgl ON

frac32.u.map.filterq reso

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__1st[i] = inlet_in__1st[i];
    outlet_out__2nd[i] = inlet_in__2nd[i];
  }
  return;
}
int32_t pitch = param_pitch;
if (!param_Fx2) {
  pitch -= 12 << 21;
}
if (jho_Para_update(&pars, pitch, param_reso, param_gain)) {
  jho_Para_biquad_coefs(&pars, &bc);
}
jho_biquad_dsp(&bs, &bc, inlet_in__1st, outlet_out__1st);
jho_biquad_dsp(&bs, &bc, inlet_in__2nd, outlet_out__2nd);

Privacy

© 2024 Zrna Research