Filters have many applications in sound synthesis and signal processing. Their basic job is to shape the spectrum of a signal by emphasizing or supressing frequencies. They are the essential component in subtractive synthesis and their individual qualities are responsible for an instrument's distincive sound. Famous filter designs, like the Moog Ladder Filter, are thus standards in the design of analog and digital musical instruments.
Regardless of the implementation details, both analog and digital filters can be categorized by their filter characteristics. These describe, which frequency components of the signal are passed through and which frequencies are rejected. This section describes some of the most frequently used filer types.
Parameters and Properties¶
-
The pass-band is that region of the spectrum that is not filtered out - it passes.
-
The stop-band is the region of the spectrum that is suppressed by the filter.
-
The filter slope is the slope between pass-band and stop-band.
-
The central parameter for most filter types is the cutoff frequency $f_c$. Depending on the characteristic, the cutoff frequency is that frequency which separates pass-band and stop-band. It is located at the $-3 \mathrm{dB}$ point of the slope.
-
Some filters have a center frequency - see band pass and band stop.
Filter Characteristics¶
Filters are characterized by their impulse response or its Fourier transform - the Frequency response. The Frequency response is complex and can be separated into the magnitude response and the phase response. For most applications, the magnitude response the most important characteristic. It is visualized in the Bode plot, with the logarithmic gain plotted over the logarithmic freuency.
Lowpass¶
The lowpass filter (LP) is the most frequently used characteristic in sound synthesis. It is used for the typical bass sounds known from analog and digital subtractive synthesis. With the right envelope settings, it creates the plucked sounds. An LP filter lets all frequencies below the cutoff frequency pass. $f_c$ is defined as that frequency where the gain of the filter is $-3\ \mathrm{dB}$, which is equivalent to $50\ \%$. The following plot shows the frequency-dependent gain of a lowpass with a cutoff at $100\ \mathrm{Hz}$.
Highpass Filter¶
The highpass (HP) filter is the opposite of the lowpass filter. It rejects low frequencies and lets high frequencies pass. The following plot shows the frequency-dependent gain of a highpass with a cutoff at $100\ \mathrm{Hz}$.
Bandpass Filter¶
The bandbass (BP) filter is a combination of lowpass and highpass. It lets frequencies between a lower cutoff frequency $f_{low}$ and an upper cutoff frequency $f_{up}$ pass. The BP filter can thus also be defined by its center frequency
$$f_{cent} = \frac{f_{up}+f_{low}}{2}$$
and the bandwith
$$\mathrm{BW} = f_{up}-f_{low}$$
Another common characteristic is the quality - the reciprocal of the normalized bandwidth:
$$Q=\frac{f_{cent}}{f_{up}-f_{low}}$$
The following plot shows a bandpass with a center frequency of $f_{cent} = 100\ \mathrm{Hz}$ and a bandwidht of $50\ \mathrm{Hz}$.
Band Stop / Band Reject¶
The band stop filter is the inverse of a band-pass - it supresses the frequencies between an upper and a lower cutoff frequency:
Allpass¶
Allpass filters do not change the magnitue spectrum of signals. Hence, their magnitude response is flat. However, they change the signals characteristic in the phase domain. This can for exmample be used in artificial reverb.