Sign in

username:

password:



Not a member?

Search Online Books



Search tips

Free Online Books

Sponsor

NEW! TMS320C6474: 3x the performance. 1/3 the cost. Three 1 GHz cores on 1 chip.

Chapters

Chapter Contents:

Search Physical Audio Signal Processing

  

Book Index | Global Index


Would you like to be notified by email when Julius Orion Smith III publishes a new entry into his blog?

  

Choice of Wah Filter Structure

A classic second-order resonator with separate controls for resonance frequency and resonance $ Q$ (quality factor) is the state variable filter [490,81,101]. However, the measurements described below reveal that resonance-frequency, $ Q$, and gain all vary significantly with pedal angle. For that reason, and because our Faust implementation uses floating point (thus eliminating the need to consider special filter structures for improved fixed-point behavior), we choose the simple biquad section [460]D.19to implement the wah resonator.

In Faust, the function TF2(b0,b1,b2,a1,a2) (defined in music.lib) implements a biquad filter section:

  TF2(b0,b1,b2,a1,a2) = sub ~ conv2(a1,a2) : conv3(b0,b1,b2)
  with {
   conv3(k0,k1,k2,x) 	= k0*x + k1*x' + k2*x'';
   conv2(k0,k1,x) 		= k0*x + k1*x';
   sub(x,y)			= y-x;
  };

It remains to express the five biquad coefficients as a function of a single wah variable. This will be done by fitting a biquad to three measured frequency responses and coming up with an interpolation formula for the varying coefficients.


Order a Hardcopy of Physical Audio Signal Processing

Previous: Digitizing the CryBaby
Next: Measuring the CryBaby Frequency Response

written by Julius Orion Smith III
Julius Smith's background is in electrical engineering (BS Rice 1975, PhD Stanford 1983). He is presently Professor of Music and Associate Professor (by courtesy) of Electrical Engineering at Stanford's Center for Computer Research in Music and Acoustics (CCRMA), teaching courses and pursuing research related to signal processing applied to music and audio systems. See http://ccrma.stanford.edu/~jos/ for details.