High-pass filter

Last updated
Ideal high-pass filter frequency response High-pass filter.jpg
Ideal high-pass filter frequency response

A high-pass filter (HPF) is an electronic filter that passes signals with a frequency higher than a certain cutoff frequency and attenuates signals with frequencies lower than the cutoff frequency. The amount of attenuation for each frequency depends on the filter design. A high-pass filter is usually modeled as a linear time-invariant system. It is sometimes called a low-cut filter or bass-cut filter in the context of audio engineering. [1] High-pass filters have many uses, such as blocking DC from circuitry sensitive to non-zero average voltages or radio frequency devices. They can also be used in conjunction with a low-pass filter to produce a band-pass filter.

Contents

In the optical domain filters are often characterised by wavelength rather than frequency. High-pass and low-pass have the opposite meanings, with a "high-pass" filter (more commonly "short-pass") passing only shorter wavelengths (higher frequencies), and vice versa for "low-pass" (more commonly "long-pass").

Description

In electronics, a filter is a two-port electronic circuit which removes frequency components from a signal (time-varying voltage or current) applied to its input port. A high-pass filter attenuates frequency components below a certain frequency, called its cutoff frequency, allowing higher frequency components to pass through. This contrasts with a low-pass filter, which attenuates frequencies higher than a certain frequency, and a bandpass filter, which allows a certain band of frequencies through and attenuates frequencies both higher and lower than the band.

In optics a high pass filter is a transparent or translucent window of colored material that allows light longer than a certain wavelength to pass through and attenuates light of shorter wavelengths. Since light is often measured not by frequency but by wavelength, which is inversely related to frequency, a high pass optical filter, which attenuates light frequencies below a cutoff frequency, is often called a short-pass filter; it attenuates longer wavelengths.

Continuous-time circuits

First-order passive

Figure 1: A passive, analog, first-order high-pass filter, realized by an RC circuit CR high pass filter.svg
Figure 1: A passive, analog, first-order high-pass filter, realized by an RC circuit

A resistor and either a capacitor or an inductor can be configured as a first-order high-pass filter. The simple first-order capacitive high-pass filter shown in Figure 1 is implemented by placing an input voltage across the series combination of a capacitor and a resistor and using the voltage across the resistor as an output. The transfer function of this linear time-invariant system is:

The product of the resistance and capacitance (R×C) is the time constant (τ); it is inversely proportional to the cutoff frequency fc, that is,

where fc is in hertz, τ is in seconds, R is in ohms, and C is in farads. The cutoff frequency is where the pole of the filter levels off the filter's frequency response.

First-order active

Figure 2: An active high-pass filter Active high-pass filter (I order).svg
Figure 2: An active high-pass filter

Figure 2 shows an active electronic implementation of a first-order high-pass filter using an operational amplifier. The transfer function of this linear time-invariant system is:

In this case, the filter has a passband gain of −R2/R1 and has a cutoff frequency of

Because this filter is active, it may have non-unity passband gain. That is, high-frequency signals are inverted and amplified by R2/R1.

All of these first-order high-pass filters are called differentiators, because they perform differentiation for signals whose frequency band is well below the filter's cutoff frequency.

Higher orders

Filters of higher order have steeper slope in the stopband, such that the slope of nth-order filters equals 20n dB per decade. Higher order filters can be achieved simply by cascading these first order filters. While impedance matching and loading must be taken into account when chaining passive filters, active filters can be easily chained because the signal is restored by the output of the op amp at each stage. Various filter topologies and network synthesis filters for higher orders exist, which ease design.

Discrete-time realization

Discrete-time high-pass filters can also be designed. Discrete-time filter design is beyond the scope of this article; however, a simple example comes from the conversion of the continuous-time high-pass filter above to a discrete-time realization. That is, the continuous-time behavior can be discretized.

From the circuit in Figure 1 above, according to Kirchhoff's Laws and the definition of capacitance:

where is the charge stored in the capacitor at time . Substituting Equation (Q) into Equation (I) and then Equation (I) into Equation (V) gives:

This equation can be discretized. For simplicity, assume that samples of the input and output are taken at evenly spaced points in time separated by time. Let the samples of be represented by the sequence , and let be represented by the sequence which correspond to the same points in time. Making these substitutions:

And rearranging terms gives the recurrence relation

That is, this discrete-time implementation of a simple continuous-time RC high-pass filter is

By definition, . The expression for parameter yields the equivalent time constant in terms of the sampling period and :

.

Recalling that

so

then and are related by:

and

.

If , then the time constant equal to the sampling period. If , then is significantly smaller than the sampling interval, and .

Algorithmic implementation

The filter recurrence relation provides a way to determine the output samples in terms of the input samples and the preceding output. The following pseudocode algorithm will simulate the effect of a high-pass filter on a series of digital samples, assuming equally spaced samples:

// Return RC high-pass filter output samples, given input samples, // time interval dt, and time constant RCfunction highpass(real[1..n] x, real dt, real RC)     varreal[1..n] y     varreal α := RC / (RC + dt)     y[1] := x[1]     for i from 2 to n         y[i] := α × y[i−1] + α × (x[i] − x[i−1])     return y

The loop which calculates each of the outputs can be refactored into the equivalent:

for i from 2 to n         y[i] := α × (y[i−1] + x[i] − x[i−1])

However, the earlier form shows how the parameter α changes the impact of the prior output y[i-1] and current change in input (x[i] - x[i-1]). In particular,

Applications

Audio

High-pass filters have many applications. They are used as part of an audio crossover to direct high frequencies to a tweeter while attenuating bass signals which could interfere with, or damage, the speaker. When such a filter is built into a loudspeaker cabinet it is normally a passive filter that also includes a low-pass filter for the woofer and so often employs both a capacitor and inductor (although very simple high-pass filters for tweeters can consist of a series capacitor and nothing else). As an example, the formula above, applied to a tweeter with a resistance of 10 Ω, will determine the capacitor value for a cut-off frequency of 5 kHz. , or approx 3.2 μF.

An alternative, which provides good quality sound without inductors (which are prone to parasitic coupling, are expensive, and may have significant internal resistance) is to employ bi-amplification with active RC filters or active digital filters with separate power amplifiers for each loudspeaker. Such low-current and low-voltage line level crossovers are called active crossovers. [1]

Rumble filters are high-pass filters applied to the removal of unwanted sounds near to the lower end of the audible range or below. For example, noises (e.g., footsteps, or motor noises from record players and tape decks) may be removed because they are undesired or may overload the RIAA equalization circuit of the preamp. [1]

High-pass filters are also used for AC coupling at the inputs of many audio power amplifiers, for preventing the amplification of DC currents which may harm the amplifier, rob the amplifier of headroom, and generate waste heat at the loudspeakers voice coil. One amplifier, the professional audio model DC300 made by Crown International beginning in the 1960s, did not have high-pass filtering at all, and could be used to amplify the DC signal of a common 9-volt battery at the input to supply 18 volts DC in an emergency for mixing console power. [2] However, that model's basic design has been superseded by newer designs such as the Crown Macro-Tech series developed in the late 1980s which included 10 Hz high-pass filtering on the inputs and switchable 35 Hz high-pass filtering on the outputs. [3] Another example is the QSC Audio PLX amplifier series which includes an internal 5 Hz high-pass filter which is applied to the inputs whenever the optional 50 and 30 Hz high-pass filters are turned off. [4]

A 75 Hz "low cut" filter from an input channel of a Mackie 1402 mixing console as measured by Smaart software. This high-pass filter has a slope of 18 dB per octave. 75 Hz HPF on Smaart.jpg
A 75 Hz "low cut" filter from an input channel of a Mackie 1402 mixing console as measured by Smaart software. This high-pass filter has a slope of 18 dB per octave.

Mixing consoles often include high-pass filtering at each channel strip. Some models have fixed-slope, fixed-frequency high-pass filters at 80 or 100 Hz that can be engaged; other models have sweepable high-pass filters, filters of fixed slope that can be set within a specified frequency range, such as from 20 to 400 Hz on the Midas Heritage 3000, or 20 to 20,000 Hz on the Yamaha M7CL digital mixing console. Veteran systems engineer and live sound mixer Bruce Main recommends that high-pass filters be engaged for most mixer input sources, except for those such as kick drum, bass guitar and piano, sources which will have useful low-frequency sounds. Main writes that DI unit inputs (as opposed to microphone inputs) do not need high-pass filtering as they are not subject to modulation by low-frequency stage wash—low frequency sounds coming from the subwoofers or the public address system and wrapping around to the stage. Main indicates that high-pass filters are commonly used for directional microphones which have a proximity effect—a low-frequency boost for very close sources. This low-frequency boost commonly causes problems up to 200 or 300 Hz, but Main notes that he has seen microphones that benefit from a 500 Hz high-pass filter setting on the console. [5]

Image

Example of high-pass filter applied to the right half of a photograph. The left side is unmodified, Right side is with a high-pass filter applied (in this case, with a radius of 4.9). High Pass Filter Example.jpg
Example of high-pass filter applied to the right half of a photograph. The left side is unmodified, Right side is with a high-pass filter applied (in this case, with a radius of 4.9).

High-pass and low-pass filters are also used in digital image processing to perform image modifications, enhancements, noise reduction, etc., using designs done in either the spatial domain or the frequency domain. [6] The unsharp masking, or sharpening, operation used in image editing software is a high-boost filter, a generalization of high-pass.

See also

Related Research Articles

<span class="mw-page-title-main">Dirac delta function</span> Generalized function whose value is zero everywhere except at zero

In mathematical analysis, the Dirac delta function, also known as the unit impulse, is a generalized function on the real numbers, whose value is zero everywhere except at zero, and whose integral over the entire real line is equal to one. Since there is no function having this property, to model the delta "function" rigorously involves the use of limits or, as is common in mathematics, measure theory and the theory of distributions.

<span class="mw-page-title-main">Cutoff frequency</span> Frequency response boundary

In physics and electrical engineering, a cutoff frequency, corner frequency, or break frequency is a boundary in a system's frequency response at which energy flowing through the system begins to be reduced rather than passing through.

The propagation constant of a sinusoidal electromagnetic wave is a measure of the change undergone by the amplitude and phase of the wave as it propagates in a given direction. The quantity being measured can be the voltage, the current in a circuit, or a field vector such as electric field strength or flux density. The propagation constant itself measures the dimensionless change in magnitude or phase per unit length. In the context of two-port networks and their cascades, propagation constant measures the change undergone by the source quantity as it propagates from one port to the next.

A low-pass filter is a filter that passes signals with a frequency lower than a selected cutoff frequency and attenuates signals with frequencies higher than the cutoff frequency. The exact frequency response of the filter depends on the filter design. The filter is sometimes called a high-cut filter, or treble-cut filter in audio applications. A low-pass filter is the complement of a high-pass filter.

<i>Q</i> factor Parameter describing the longevity of energy in a resonator relative to its resonant frequency

In physics and engineering, the quality factor or Q factor is a dimensionless parameter that describes how underdamped an oscillator or resonator is. It is defined as the ratio of the initial energy stored in the resonator to the energy lost in one radian of the cycle of oscillation. Q factor is alternatively defined as the ratio of a resonator's centre frequency to its bandwidth when subject to an oscillating driving force. These two definitions give numerically similar, but not identical, results. Higher Q indicates a lower rate of energy loss and the oscillations die out more slowly. A pendulum suspended from a high-quality bearing, oscillating in air, has a high Q, while a pendulum immersed in oil has a low one. Resonators with high quality factors have low damping, so that they ring or vibrate longer.

<span class="mw-page-title-main">Sinc filter</span> Ideal low-pass filter or averaging filter

In signal processing, a sinc filter can refer to either a sinc-in-time filter whose impulse response is a sinc function and whose frequency response is rectangular, or to a sinc-in-frequency filter whose impulse response is rectangular and whose frequency response is a sinc function. Calling them according to which domain the filter resembles a sinc avoids confusion. If the domain is unspecified, sinc-in-time is often assumed, or context hopefully can infer the correct domain.

A resistor–capacitor circuit, or RC filter or RC network, is an electric circuit composed of resistors and capacitors. It may be driven by a voltage or current source and these will produce different responses. A first order RC circuit is composed of one resistor and one capacitor and is the simplest type of RC circuit.

Chebyshev filters are analog or digital filters that have a steeper roll-off than Butterworth filters, and have either passband ripple or stopband ripple. Chebyshev filters have the property that they minimize the error between the idealized and the actual filter characteristic over the operating frequency range of the filter, but they achieve this with ripples in the passband. This type of filter is named after Pafnuty Chebyshev because its mathematical characteristics are derived from Chebyshev polynomials. Type I Chebyshev filters are usually referred to as "Chebyshev filters", while type II filters are usually called "inverse Chebyshev filters". Because of the passband ripple inherent in Chebyshev filters, filters with a smoother response in the passband but a more irregular response in the stopband are preferred for certain applications.

In signal processing, a finite impulse response (FIR) filter is a filter whose impulse response is of finite duration, because it settles to zero in finite time. This is in contrast to infinite impulse response (IIR) filters, which may have internal feedback and may continue to respond indefinitely.

The Sallen–Key topology is an electronic filter topology used to implement second-order active filters that is particularly valued for its simplicity. It is a degenerate form of a voltage-controlled voltage-source (VCVS) filter topology. It was introduced by R. P. Sallen and E. L. Key of MIT Lincoln Laboratory in 1955.

<span class="mw-page-title-main">Butterworth filter</span> Type of signal processing filter

The Butterworth filter is a type of signal processing filter designed to have a frequency response that is as flat as possible in the passband. It is also referred to as a maximally flat magnitude filter. It was first described in 1930 by the British engineer and physicist Stephen Butterworth in his paper entitled "On the Theory of Filter Amplifiers".

<span class="mw-page-title-main">String vibration</span> A wave

A vibration in a string is a wave. Resonance causes a vibrating string to produce a sound with constant frequency, i.e. constant pitch. If the length or tension of the string is correctly adjusted, the sound produced is a musical tone. Vibrating strings are the basis of string instruments such as guitars, cellos, and pianos.

A resistor–inductor circuit, or RL filter or RL network, is an electric circuit composed of resistors and inductors driven by a voltage or current source. A first-order RL circuit is composed of one resistor and one inductor, either in series driven by a voltage source or in parallel driven by a current source. It is one of the simplest analogue infinite impulse response electronic filters.

<span class="mw-page-title-main">Delta-sigma modulation</span> Method for converting signals between digital and analog

Delta-sigma modulation is an oversampling method for encoding signals into low bit depth digital signals at a very high sample-frequency as part of the process of delta-sigma analog-to-digital converters (ADCs) and digital-to-analog converters (DACs). Delta-sigma modulation achieves high quality by utilizing a negative feedback loop during quantization to the lower bit depth that continuously corrects quantization errors and moves quantization noise to higher frequencies well above the original signal's bandwidth. Subsequent low-pass filtering for demodulation easily removes this high frequency noise and time averages to achieve high accuracy in amplitude which can be ultimately encoded as pulse-code modulation (PCM).

An all-pass filter is a signal processing filter that passes all frequencies equally in gain, but changes the phase relationship among various frequencies. Most types of filter reduce the amplitude of the signal applied to it for some values of frequency, whereas the all-pass filter allows all frequencies through without changes in level.

In electronics, a differentiator is a circuit that outputs a signal approximately proportional to the rate of change of its input signal. Because the derivative of a sinusoid in another sinusoid whose amplitude is multiplied by its frequency, a true differentiator that works across all frequencies can't be realized. Real circuits such as a 1st-order high-pass filter are able to approximate differentiation at lower frequencies by limiting the gain above its cutoff frequency. An active differentiator includes an amplifier, while a passive differentiator is made only of resistors, capacitors and inductors.

Expected shortfall (ES) is a risk measure—a concept used in the field of financial risk measurement to evaluate the market risk or credit risk of a portfolio. The "expected shortfall at q% level" is the expected return on the portfolio in the worst of cases. ES is an alternative to value at risk that is more sensitive to the shape of the tail of the loss distribution.

<span class="mw-page-title-main">Constant-Q transform</span> Short-time Fourier transform with variable resolution

In mathematics and signal processing, the constant-Q transform and variable-Q transform, simply known as CQT and VQT, transforms a data series to the frequency domain. It is related to the Fourier transform and very closely related to the complex Morlet wavelet transform. Its design is suited for musical representation.

When an electromagnetic wave travels through a medium in which it gets attenuated, it undergoes exponential decay as described by the Beer–Lambert law. However, there are many possible ways to characterize the wave and how quickly it is attenuated. This article describes the mathematical relationships among:

<span class="mw-page-title-main">RLC circuit</span> Resistor Inductor Capacitor Circuit

An RLC circuit is an electrical circuit consisting of a resistor (R), an inductor (L), and a capacitor (C), connected in series or in parallel. The name of the circuit is derived from the letters that are used to denote the constituent components of this circuit, where the sequence of the components may vary from RLC.

References

  1. 1 2 3 Watkinson, John (1998). The Art of Sound Reproduction . Focal Press. pp.  268, 479. ISBN   0-240-51512-9 . Retrieved March 9, 2010.
  2. Andrews, Keith; posting as ssltech (January 11, 2010). "Re: Running the board for a show this big?". Recording, Engineering & Production. ProSoundWeb. Archived from the original on 15 July 2011. Retrieved 9 March 2010.
  3. "Operation Manual: MA-5002VZ" (PDF). Macro-Tech Series. Crown Audio. 2007. Archived from the original (PDF) on January 3, 2010. Retrieved March 9, 2010.
  4. "User Manual: PLX Series Amplifiers" (PDF). QSC Audio. 1999. Archived from the original (PDF) on February 9, 2010. Retrieved March 9, 2010.
  5. Main, Bruce (February 16, 2010). "Cut 'Em Off At The Pass: Effective Uses Of High-Pass Filtering". Live Sound International. Framingham, Massachusetts: ProSoundWeb, EH Publishing.
  6. Paul M. Mather (2004). Computer processing of remotely sensed images: an introduction (3rd ed.). John Wiley and Sons. p. 181. ISBN   978-0-470-84919-4.