Sample Source Code UI Callback ftype = LPF; f0 = 1000; Q = 5; filterL.setParameter(ftype, f0, Q); filterR.setParameter(ftype, f0, Q); Filter Parameter Setup Function void CFilter::setParameter(int ftype, float f0, float Q) { float omega, sn, cs, alpha; float a0, a1, a2, b0, b1, b2; omega = 2.f * PI * f0 / 44100.f; sn = sin(omega); cs = cos(omega); alpha = sn / (2.f * Q); if (ftype == LPF) { // LPF