Generalizing the one-zero, one-pole filter above, suppose we place the zero at a point $q,ドル a real number close to, but less than, one. The pole, at the point $p,ドル is similarly situated, and might be either greater than or less than $q,ドル i.e., to the right or left, respectively, but with both $q$ and $p$ within the unit circle. This situation is diagrammed in Figure 8.14.
At points of the circle far from $p$ and $q,ドル the effects of the pole and the zero are nearly inverse (the distances to them are nearly equal), so the filter passes those frequencies nearly unaltered. In the neighborhood of $p$ and $q,ドル on the other hand, the filter will have a gain greater or less than one depending on which of $p$ or $q$ is closer to the circle. This configuration therefore acts as a low-frequency shelving filter. (To make a high-frequency shelving filter we do the same thing, only placing $p$ and $q$ close to -1 instead of 1.)
To find the parameters of a shelving filter given a desired transition frequency $\omega $ (in angular units) and low-frequency gain $g,ドル first we choose an average distance $d,ドル as pictured in the figure, from the pole and the zero to the edge of the circle. For small values of $d,ドル the region of influence is about $d$ radians, so simply set $d = \omega$ to get the desired transition frequency.
Then put the pole at
$p = 1 - d / \sqrt{g}$ and the zero at
$q = 1 - d \sqrt{g}$. The gain at zero frequency is then