Engineering ยท Simulator 098
Filters let some frequencies through and hold others back. Choose a filter type, its cutoff and sharpness, and see its frequency response from deep bass to high treble. A test signal of mains hum, a musical note and hiss shows what survives; press "Play sound" to hear the filtered mix.
A filter's frequency response |resp(f)| says how much it scales a sine wave of frequency f. It is usually shown in decibels, 20 logโโ|H|: โ6 dB halves the amplitude, โ20 dB is one tenth, โ40 dB one hundredth.
Low-pass and high-pass filters here are Butterworth designs, as flat as possible in the passband. At the cutoff f_c the response is โ3 dB, and beyond it falls by 20 dB per decade (6 dB per octave) for every order:
|H_LP(f)| = 1 / โ(1 + (f / f_c)^(2n))
A band-pass filter keeps a band around fโ whose width is fโ / Q; a notch removes a narrow band, useful for mains hum at 50 or 60 Hz. Higher Q means a narrower band:
band-pass: |H| = (f/(Q fโ)) / โ((1 โ (f/fโ)ยฒ)ยฒ + (f/(Q fโ))ยฒ)
The simplest electronic low-pass, a resistor and capacitor, is first order with f_c = 1 / (2ฯRC).
Responses are for the ideal analog filters; the sound uses the browser's digital biquad filters, which match closely below about 10 kHz. Sound plays only when you press the button; keep the volume low.
A guitar pedal uses a resistor of 1.6 kฮฉ and a capacitor of 100 nF as a first-order low-pass filter. What is its cutoff frequency, and how much does it reduce a 10 kHz component?
f_c = 1 / (2ฯ ร 1600 ร 100ร10โปโน) โ 995 Hz. At 10 kHz, f/f_c โ 10, so |H| = 1/โ(1 + 100) โ 0.0995, about โ20 dB: a first-order filter falls by only 20 dB per decade. Compare the order-2 setting in the simulator, which gives โ40 dB.