Peak filter

A peak filter is a frequency filter that passes a narrow band of frequencies and stops all other frequencies.

A peak filter is, in essence, a very narrow band pass filter and the opposite of a notch filter. An example peak filter is below.

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

Transfer function of the second order low-boost shelving filter

and substitute s with (s2c2) / (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

Transfer function of the peak filter with the Laplace transform

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

Transfer function of the peak filter with the Z transform

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.

Magnitude response of the peak filter

Add new comment

Filtered HTML

  • Freelinking helps you easily create HTML links. Links take the form of [[indicator:target|Title]]. By default (no indicator): Click to view a local node.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.