frac32buffer filter input, 1st part
frac32buffer filter input, 2nd part
frac32buffer filter output, 1st part
frac32buffer filter output, 2nd part
frac32.s.map gain
frac32.s.map.pitch pitch
bool32.tgl Fx2
bool32.tgl ON
frac32.u.map.filterq reso
biquad_state bs;
biquad_coefficients bc;
jho_Para pars;
biquad_clearstate(&bs);
jho_Para_init(&pars);
jho_Para_biquad_coefs(&pars, &bc);
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);