An all-pass filter is a signal processing filter that passes all frequencies equally in gain, but changes the phase relationship among various frequencies. Most types of filter reduce the amplitude (i.e. the magnitude) of the signal applied to it for some values of frequency, whereas the all-pass filter allows all frequencies through without changes in level.
A common application in electronic music production is in the design of an effects unit known as a "phaser", where a number of all-pass filters are connected in sequence and the output mixed with the raw signal.
It does this by varying its phase shift as a function of frequency. Generally, the filter is described by the frequency at which the phase shift crosses 90° (i.e., when the input and output signals go into quadrature - when there is a quarter wavelength of delay between them).
They are generally used to compensate for other undesired phase shifts that arise in the system, or for mixing with an unshifted version of the original to implement a notch comb filter.
They may also be used to convert a mixed phase filter into a minimum phase filter with an equivalent magnitude response or an unstable filter into a stable filter with an equivalent magnitude response.
The operational amplifier circuit shown in adjacent figure implements a single-pole active all-pass filter that features a low-pass filter at the non-inverting input of the opamp. The filter's transfer function is given by:
H(s)=-
| ||||||
|
=
1-sRC | |
1+sRC |
,
|H(i\omega)|=1 and \angleH(i\omega)=-2\arctan(\omegaRC).
The filter has unity-gain magnitude for all ω. The filter introduces a different delay at each frequency and reaches input-to-output quadrature at ω=1/RC (i.e., phase shift is 90°).[2]
This implementation uses a low-pass filter at the non-inverting input to generate the phase shift and negative feedback.
In fact, the phase shift of the all-pass filter is double the phase shift of the low-pass filter at its non-inverting input.
The Laplace transform of a pure delay is given by
e-sT,
T
s\inC
e-sT=
e-sT/2 | |
esT/2 |
≈
1-sT/2 | |
1+sT/2 |
,
RC=T/2
H(s)
The operational amplifier circuit shown in the adjacent figure implements a single-pole active all-pass filter that features a high-pass filter at the non-inverting input of the opamp. The filter's transfer function is given by:
H(s)=
| ||||||
|
,
|H(i\omega)|=1 and \angleH(i\omega)=\pi-2\arctan(\omegaRC).
This implementation uses a high-pass filter at the non-inverting input to generate the phase shift and negative feedback.
In fact, the phase shift of the all-pass filter is double the phase shift of the high-pass filter at its non-inverting input.
The resistor can be replaced with a FET in its ohmic mode to implement a voltage-controlled phase shifter; the voltage on the gate adjusts the phase shift. In electronic music, a phaser typically consists of two, four or six of these phase-shifting sections connected in tandem and summed with the original. A low-frequency oscillator (LFO) ramps the control voltage to produce the characteristic swooshing sound.
The benefit to implementing all-pass filters with active components like operational amplifiers is that they do not require inductors, which are bulky and costly in integrated circuit designs. In other applications where inductors are readily available,all-pass filters can be implemented entirely without active components. There are a number of circuit topologies that can be used for this. The following are the most commonly used circuits.
See main article: Lattice phase equaliser. The lattice phase equaliser, or filter, is a filter composed of lattice, or X-sections. With single element branches it can produce a phase shift up to 180°, and with resonant branches it can produce phase shifts up to 360°. The filter is an example of a constant-resistance network (i.e., its image impedance is constant over all frequencies).
The phase equaliser based on T topology is the unbalanced equivalent of the lattice filter and has the same phase response. While the circuit diagram may looklike a low pass filter it is different in that the two inductor branches are mutually coupled. This results in transformer action between the two inductors and an all-pass response even at high frequency.
See main article: Bridged T delay equaliser. The bridged T topology is used for delay equalisation, particularly the differential delay between two landlines being used for stereophonic sound broadcasts. This application requires that the filter has a linear phase response with frequency (i.e., constant group delay) over a wide bandwidth and is the reason for choosing this topology.
A Z-transform implementation of an all-pass filter with a complex pole at
z0
H(z)=
z-1-\overline{z0 | |
1/\overline{z0}
\overline{z}
z0
To create an all-pass implementation with real coefficients, the complex all-pass filter can be cascaded with an all-pass that substitutes
\overline{z0}
z0
H(z) =
z-1-\overline{z0 | |
y[k]-2\Re(z0)y[k-1]+
2 | |
\left|z | |
0\right| |
y[k-2]= x[k-2]-2\Re(z0)x[k-1]+
2 | |
\left|z | |
0\right| |
x[k],
y[k]
x[k]
k
Filters such as the above can be cascaded with unstable or mixed-phase filters to create a stable or minimum-phase filter without changing the magnitude response of the system. For example, by proper choice of
z0