Next  |  Prev  |  Up  |  Top  |  REALSIMPLE Top

Phasing with 2nd-Order Allpass Filters

The allpass structure proposed in [#!SmithAllpassFlanger!#] provides a convenient means for generating nonuniformly spaced notches that are independently controllable to a high degree. Another advantage of the allpass approach is that no interpolating delay line is needed.

\begin{figure}\centering
\input fig/allpassphaser.pstex_t
\\ {\LARGE Structure of a phaser based on four allpass filters AP1 through AP4.}
\end{figure}

Allpass Phaser Architecture

The architecture of the allpass-based notch filter is shown in Fig. 1. It consists of a series connection of allpass filters with a feed-around. Thus, the delay line of the flanger is replaced by a string of allpass filters. (A delay line is of course an allpass filter itself.) The phaser will have a notch wherever the phase of the allpass chain is at $ \pi$ (180 degrees). It can be shown that these frequencies occur very close to the resonant frequencies of the allpass chain. It is therefore convenient to use a single conjugate pole pair in each allpass section, i.e., use second-order allpass sections of the form

$\displaystyle H(z) = \frac{a_2 + a_1 z^{-1} + z^{-2}}{1 + a_1 z^{-1} + a_2 z^{-2}}
$

where

\begin{eqnarray*}
a_1 &=& -2R\cos(\theta)\\
a_2 &=& R^2
\end{eqnarray*}

and $ R$ is the radius of each pole in the complex-conjugate pole pair, and pole angles are $ \pm\theta$. The pole angle can be interpreted as $ \theta=\omega_c T$ where $ \omega_c$ is the resonant frequency and $ T$ is the sampling interval.

Allpass Phaser Parameters

To move just one notch, the tuning of the pole-pair in the corresponding section is all that needs to be changed. Note that tuning affects only one coefficient in the second-order allpass structure (though it is used in two places).

The depth of the notches can be varied together by changing the gain of the feedforward path.

The bandwidth of individual notches is mostly controlled by the distance of the associated pole-pair from the unit circle. So to widen the notch associated with a particular allpass section, one may increase the ``damping'' of that section.

Finally, since the gain of the allpass string is unity (by definition of allpass filters), the gain of the entire structure is strictly bounded between 0 and 2. This property allows arbitrary notch controls to be applied without fear of the overall gain becoming ill-behaved.

Allpass Phaser Notch Distribution

As mentioned above, it is desirable to avoid exact harmonic spacing of the notches, but what is the ideal non-uniform spacing? One possibility is to space the notches according to the critical bands of hearing, since essentially this gives a uniform notch density with respect to ``place'' along the basilar membrane in the ear. There is no need to follow closely the critical-band structure, and many simple functional relationships can be utilized to tune the notches [#!SmithAndAbel99!#]. Due to the immediacy of the relation between notch characteristics and the filter coefficients, the notches can easily be placed under musically meaningful control.


Next  |  Prev  |  Up  |  Top  |  REALSIMPLE Top

Download DelayVar.pdf
Download DelayVar_2up.pdf
Download DelayVar_4up.pdf

``Time Varying Delay Effects'', by Julius O. Smith III and Nelson Lee,
REALSIMPLE Project — work supported by the Wallenberg Global Learning Network .
Released 2008-06-05 under the Creative Commons License (Attribution 2.5), by Julius O. Smith III and Nelson Lee
Center for Computer Research in Music and Acoustics (CCRMA),   Stanford University
CCRMA