Often we need a filter with a frequency response that is not analytically known. An example is a graphic equalizer in which a user may manipulate sliders in a graphical user interface to control the gain in each of several frequency bands. From the foregoing, the following procedure, based in spirit on the window method (§E.4), can yield good results:
- Synthesize the desired frequency response as the smoothest possible interpolation of the desired frequency-response points. For example, in a graphical equalizer, cubic splines could be used to connect the desired band gains.E.2
- If the desired frequency response is real (as in simple band gains), either plan for a zero-phase filter in the end, or synthesize a desired phase, such as linear phase or minimum phase .
- Perform the inverse Fourier transform (FFT) of the (sampled) desired frequency response to obtain the desired impulse response.
- Plot an overlay of the desired impulse response and the window to be applied, ensuring that the great majority of the signal energy in the desired impulse response lies under the window to be used.
- Multiply by the window.
- Take an FFT (now with zero padding introduced by the window).
- Plot an overlay of the original desired response and the response retained after time-domain windowing, and verify that the specifications are within an acceptable range.
Minimum Phase Filter Design
Postlude on Hilbert Transform Theory