dcshift shift [limitergain]
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 |