A peak filter is a frequency filter that passes a narrow band of frequencies and stops all other frequencies.
Peak filters are used, for example, in wah wah effects. The wah wah effect is created by moving the peak filter up and down the frequency range and adding the filter output signal to the original signal.
An example digital IIR peak filter
A band-boost shelving filter with a narrow band a large gain is a peak filter. Take, for example, the second order low-boost infinite impulse response shelving filter transfer function with the Laplace transform
and substitute s with (s2+ωc2) / (B s). A band-boost shelving filter preserves the magnitude of frequencies outside of a band and increases the magnitude of frequencies inside the band by the gain G. If, instead, we want to preserve the magnitude of frequencies inside the band and reduce the magnitude of frequencies outside of the band, we will also need to add the gain (1/G). The result is the transfer function
Here, ωc is the mid-point of the frequency band with preserved magnitude, B is the width of that band, and G is the reduction in the gain for frequencies outside of the band.
After the bilinear transformation s = 2 (z – 1) / (z + 1), the transfer function of this filter is
Take, for example, ωc = 1.5, B = 0.1, and G = 100 ≈ 40 dB. After scaling the filter coefficients to set b0 = 1, we have approximately a0 = 0.0149, a1 = -0.0131, a2 = 0.0202, a3 = -0.0083, a4 = 0.0062, b0 = 1, b1 = -1.0947, b2 = 2.2093, b3 = -1.0462, and b4 = 0.9135. If, for example, we set the sampling rate to 2000 Hz, then the mid-point of the band should be ≈ 477 Hz, but since the bilinear transformation warps the frequency domain, the actual midpoint of the pass band will be 2 arctan(ωc / 2) = 1.287 ≈ 410 Hz (if we want a filter precisely at the angular frequency 1.5, we should set ωc = 2 tan(1.5 / 2)). The magnitude response of this peak filter is as follows.