Name
DCShift -- apply or remove DC offset
Synopsis
dcshift shift [limitergain]
Function
Apply a DC shift to the audio. This can be useful to remove a DC offset (caused perhaps by a hardware problem in the recording chain) from the audio. The effect of a DC offset is reduced headroom and hence volume. The stat or stats effect can be used to determine if a signal has a DC offset.

The given shift value is a floating point number in the range of +/-2 that indicates the amount to shift the audio (which is in the range of +/-1).

An optional limitergain can be specified as well. It should have a value much less than 1 (e.g. 0.05 or 0.02) and is used only on peaks to prevent clipping.

An alternative approach to removing a DC offset (albeit with a short delay) is to use the highpass filter effect at a frequency of say 10Hz, as illustrated in the following example:

 
synth 5 sin %0 50
highpass 10


Show TOC