Clipping (signal processing)

Last updated
An oscilloscope screen of an amplifier clipping. The amplifier should be outputting a clean sine wave with rounded tops and bottoms, but instead they are cut off flat, or clipped. Clipping 1KHz 10V DIV clip A 5ohms-1-.jpg
An oscilloscope screen of an amplifier clipping. The amplifier should be outputting a clean sine wave with rounded tops and bottoms, but instead they are cut off flat, or clipped.

Clipping is a form of distortion that limits a signal once it exceeds a threshold. Clipping may occur when a signal is recorded by a sensor that has constraints on the range of data it can measure, it can occur when a signal is digitized, or it can occur any other time an analog or digital signal is transformed, particularly in the presence of gain or overshoot and undershoot.

Contents

Clipping may be described as hard, in cases where the signal is strictly limited at the threshold, producing a flat cutoff; or it may be described as soft, in cases where the clipped signal continues to follow the original at a reduced gain. Hard clipping results in many high-frequency harmonics; soft clipping results in fewer higher-order harmonics and intermodulation distortion components.

Audio

This PCM waveform is clipped between the red lines Clipping.svg
This PCM waveform is clipped between the red lines

In the frequency domain, clipping produces strong harmonics in the high-frequency range (as the clipped waveform comes closer to a squarewave). The extra high-frequency weighting of the signal could make tweeter damage more likely than if the signal was not clipped.

Many electric guitar players intentionally overdrive their amplifiers (or insert a "fuzz box") to cause clipping in order to get a desired sound (see guitar distortion).

In general, the distortion associated with clipping is unwanted, and is visible on an oscilloscope even if it is inaudible. [1]

Images

Example image exhibiting blown-out highlights. Top: original image, bottom: blown-out areas marked red Blown-out highlights.jpg
Example image exhibiting blown-out highlights. Top: original image, bottom: blown-out areas marked red

In the image domain, clipping is seen as desaturated (washed-out) bright areas that turn to pure white if all color components clip. In digital colour photography, it is also possible for individual colour channels to clip, which results in inaccurate colour reproduction.

Causes

Analog circuitry

A circuit designer may intentionally use a clipper or clamper to keep a signal within a desired range.

When an amplifier is pushed to create a signal with more power than it can support, it will amplify the signal only up to its maximum capacity, at which point the signal will be amplified no further.

Digital processing

In digital signal processing, clipping occurs when the signal is restricted by the range of a chosen representation. For example in a system using 16-bit signed integers, 32767 is the largest positive value that can be represented, and if during processing the amplitude of the signal is doubled, sample values of 32000 should become 64000, but instead they are truncated to the maximum, 32767. Clipping is preferable to the alternative in digital systems — wrapping — which occurs if the digital hardware is allowed to "overflow", ignoring the most significant bits of the magnitude, and sometimes even the sign of the sample value, resulting in gross distortion of the signal.

The incidence of clipping may be greatly reduced by using floating point numbers instead of integers. However, floating point numbers are usually less efficient to use, sometimes result in a loss of precision, and they can still clip if a number is extremely large or small.

Avoiding clipping

Clipping can be detected by viewing the signal (on an oscilloscope, for example), and observing that the tops and bottoms of waves aren't smooth anymore. When working with images, some tools can highlight all pixels that are pure white, allowing the user to identify larger groups of white pixels and decide if too much clipping has occurred.

To avoid clipping, the signal can be dynamically reduced using a limiter. If not done carefully, this can still cause undesirable distortion, but it prevents any data from being completely lost.

Repairing a clipped signal

When clipping occurs, part of the original signal is lost, so perfect restoration is impossible. Thus, it is much preferable to avoid clipping in the first place. However, when repair is the only option, the goal is to make up a plausible replacement for the clipped part of the signal.

See also

Related Research Articles

In electronics, the figures of merit of an amplifier are numerical measures that characterize its properties and performance. Figures of merit can be given as a list of specifications that include properties such as gain, bandwidth, noise and linearity, among others listed in this article. Figures of merit are important for determining the suitability of a particular amplifier for an intended use.

<span class="mw-page-title-main">Electronic oscillator</span> Type of electronic circuit

An electronic oscillator is an electronic circuit that produces a periodic, oscillating electronic signal, often a sine wave or a square wave or a triangle wave. Oscillators convert direct current (DC) from a power supply to an alternating current (AC) signal. They are widely used in many electronic devices ranging from simplest clock generators to digital instruments and complex computers and peripherals etc. Common examples of signals generated by oscillators include signals broadcast by radio and television transmitters, clock signals that regulate computers and quartz clocks, and the sounds produced by electronic beepers and video games.

<span class="mw-page-title-main">Amplifier</span> Electronic device/component that increases the strength of a signal

An amplifier, electronic amplifier or (informally) amp is an electronic device that can increase the power of a signal. It is a two-port electronic circuit that uses electric power from a power supply to increase the amplitude of a signal applied to its input terminals, producing a proportionally greater amplitude signal at its output. The amount of amplification provided by an amplifier is measured by its gain: the ratio of output voltage, current, or power to input. An amplifier is a circuit that has a power gain greater than one.

In signal processing, distortion is the alteration of the original shape of a signal. In communications and electronics it means the alteration of the waveform of an information-bearing signal, such as an audio signal representing sound or a video signal representing images, in an electronic device or communication channel.

<span class="mw-page-title-main">Audio system measurements</span> Means of quantifying system performance

Audio system measurements are a means of quantifying system performance. These measurements are made for several purposes. Designers take measurements so that they can specify the performance of a piece of equipment. Maintenance engineers make them to ensure equipment is still working to specification, or to ensure that the cumulative defects of an audio path are within limits considered acceptable. Audio system measurements often accommodate psychoacoustic principles to measure the system in a way that relates to human hearing.

<span class="mw-page-title-main">Instrument amplifier</span>

An instrument amplifier is an electronic device that converts the often barely audible or purely electronic signal of a musical instrument into a larger electronic signal to feed to a loudspeaker. An instrument amplifier is used with musical instruments such as an electric guitar, an electric bass, electric organ, synthesizers and drum machine to convert the signal from the pickup or other sound source into an electronic signal that has enough power, due to being routed through a power amplifier, capable of driving one or more loudspeaker that can be heard by the performers and audience.

<span class="mw-page-title-main">Valve amplifier</span> Type of electronic amplifier

A valve amplifier or tube amplifier is a type of electronic amplifier that uses vacuum tubes to increase the amplitude or power of a signal. Low to medium power valve amplifiers for frequencies below the microwaves were largely replaced by solid state amplifiers in the 1960s and 1970s. Valve amplifiers can be used for applications such as guitar amplifiers, satellite transponders such as DirecTV and GPS, high quality stereo amplifiers, military applications and very high power radio and UHF television transmitters.

<span class="mw-page-title-main">Limiter</span> Electronic amplitude limiting device

In electronics, a limiter is a circuit that allows signals below a specified input power or level to pass unaffected while attenuating (lowering) the peaks of stronger signals that exceed this threshold. Limiting is a type of dynamic range compression. Clipping is an extreme version of limiting.

<span class="mw-page-title-main">Push–pull output</span>

A push–pull amplifier is a type of electronic circuit that uses a pair of active devices that alternately supply current to, or absorb current from, a connected load. This kind of amplifier can enhance both the load capacity and switching speed.

In electronics, a frequency multiplier is an electronic circuit that generates an output signal and that output frequency is a harmonic (multiple) of its input frequency. Frequency multipliers consist of a nonlinear circuit that distorts the input signal and consequently generates harmonics of the input signal. A subsequent bandpass filter selects the desired harmonic frequency and removes the unwanted fundamental and other harmonics from the output.

<span class="mw-page-title-main">Pickup (music technology)</span> Transducer that senses vibration of musical instruments

A pickup is a transducer that captures or senses mechanical vibrations produced by musical instruments, particularly stringed instruments such as the electric guitar, and converts these to an electrical signal that is amplified using an instrument amplifier to produce musical sounds through a loudspeaker in a speaker enclosure. The signal from a pickup can also be recorded directly.

When describing a periodic function in the time domain, the DC bias, DC component, DC offset, or DC coefficient is the mean amplitude of the waveform. If the mean amplitude is zero, there is no DC bias. A waveform with no DC bias is known as a DC balanced or DC free waveform.

<span class="mw-page-title-main">Linear amplifier</span> Electronic circuit

A linear amplifier is an electronic circuit whose output is proportional to its input, but capable of delivering more power into a load. The term usually refers to a type of radio-frequency (RF) power amplifier, some of which have output power measured in kilowatts, and are used in amateur radio. Other types of linear amplifier are used in audio and laboratory equipment. Linearity refers to the ability of the amplifier to produce signals that are accurate copies of the input. A linear amplifier responds to different frequency components independently, and tends not to generate harmonic distortion or intermodulation distortion. No amplifier can provide perfect linearity however, because the amplifying devices—transistors or vacuum tubes—follow nonlinear transfer function and rely on circuitry techniques to reduce those effects. There are a number of amplifier classes providing various trade-offs between implementation cost, efficiency, and signal accuracy.

<span class="mw-page-title-main">Clipping (audio)</span> Form of waveform distortion

Clipping is a form of waveform distortion that occurs when an amplifier is overdriven and attempts to deliver an output voltage or current beyond its maximum capability. Driving an amplifier into clipping may cause it to output power in excess of its power rating.

<span class="mw-page-title-main">Gain compression</span> Reduction in gain due to nonlinearity

Gain compression is a reduction in differential or slope gain caused by nonlinearity of the transfer function of the amplifying device. This nonlinearity may be caused by heat due to power dissipation or by overdriving the active device beyond its linear region. It is a large-signal phenomenon of circuits.

<span class="mw-page-title-main">Distortion (music)</span> Electronic manipulation of audio signals to increase their gain

Distortion and overdrive are forms of audio signal processing used to alter the sound of amplified electric musical instruments, usually by increasing their gain, producing a "fuzzy", "growling", or "gritty" tone. Distortion is most commonly used with the electric guitar, but may also be used with other electric instruments such as electric bass, electric piano, synthesizer and Hammond organ. Guitarists playing electric blues originally obtained an overdriven sound by turning up their vacuum tube-powered guitar amplifiers to high volumes, which caused the signal to distort. While overdriven tube amps are still used to obtain overdrive, especially in genres like blues and rockabilly, a number of other ways to produce distortion have been developed since the 1960s, such as distortion effect pedals. The growling tone of a distorted electric guitar is a key part of many genres, including blues and many rock music genres, notably hard rock, punk rock, hardcore punk, acid rock, and heavy metal music, while the use of distorted bass has been essential in a genre of hip hop music and alternative hip hop known as "SoundCloud rap".

<span class="mw-page-title-main">Tube sound</span> Characteristic quality of sounds from vacuum tube amplifiers

Tube sound is the characteristic sound associated with a vacuum tube amplifier, a vacuum tube-based audio amplifier. At first, the concept of tube sound did not exist, because practically all electronic amplification of audio signals was done with vacuum tubes and other comparable methods were not known or used. After introduction of solid state amplifiers, tube sound appeared as the logical complement of transistor sound, which had some negative connotations due to crossover distortion in early transistor amplifiers. However, solid state amplifiers have been developed to be flawless and the sound is later regarded neutral compared to tube amplifiers. Thus the tube sound now means 'euphonic distortion.' The audible significance of tube amplification on audio signals is a subject of continuing debate among audio enthusiasts.

A Virtual Valve Amplifier (VVA) is software algorithm designed and sold by Diamond Cut Productions, Inc. for simulating the sound of various valve amplifier designs. It can be found within their DC8 and Forensics8 software programs.

<span class="mw-page-title-main">Fuzz bass</span>

Fuzz bass, also called "bass overdrive" or "bass distortion", is a style of playing the electric bass or modifying its signal that produces a buzzy, distorted, overdriven sound, as the name implies. Overdriving a bass signal significantly changes the timbre, adds higher overtones (harmonics), increases the sustain, and, if the gain is turned up high enough, creates a "breaking up" sound characterized by a growling, buzzy tone.

In electronics, power amplifier classes are letter symbols applied to different power amplifier types. The class gives a broad indication of an amplifier's characteristics and performance. The classes are related to the time period that the active amplifier device is passing current, expressed as a fraction of the period of a signal waveform applied to the input. A class A amplifier is conducting through all the period of the signal; Class B only for one-half the input period, class C for much less than half the input period. A Class D amplifier operates its output device in a switching manner; the fraction of the time that the device is conducting is adjusted so a pulse-width modulation output is obtained from the stage.

References

  1. Zottola, Tino (1996). Vacuum Tube and Guitar and Bass Amplifier Servicing. Bold Strummer. p. 6. ISBN   0-933224-97-4.