shithub: sox

Download patch

ref: 11eccd5a11cdbe1b7caf642901d85368a1ebc4d9
parent: 2e9dc5e8a100f2e3c940d8af703dfcd2b5c56470
author: robs <robs>
date: Sat Jan 6 03:37:04 EST 2007

Corrected the paragraph separation mistake made in my previous commit;
Documented macros to prevent recurrence.

--- a/sox.1
+++ b/sox.1
@@ -1,9 +1,22 @@
 '\" t
 '\" The line above instructs some `man' programs to invoke tbl
+'\"
+'\" Separate paragraphs; not the same as .PP which resets indent level.
+.de SP
+.if t .sp .5
+.if n .sp
+..
+'\"
+'\" Replacement em-dash for nroff (default is too short).
 .ie n .ds m " - 
 .el .ds m \(em
+'\"
+'\" Placeholder macro for if longer nroff arrow is needed.
 .ds RA \(->
-.ds d \v'-.15m'.\v'+.15m'\" Decimal point set slightly raised
+'\"
+'\" Decimal point set slightly raised
+.ds d \v'-.15m'.\v'+.15m'
+'\"
 .TH SoX 1 "January 31, 2007" "sox" "Sound eXchange"
 .SH NAME
 SoX\*mSound eXchange\*mThe Swiss Army knife of audio manipulation
@@ -17,13 +30,13 @@
 SoX reads and writes audio files in most popular formats and can
 optionally apply effects to them; it includes a basic audio synthesiser,
 and, on many systems, can play and record audio files.
-.P
+.SP
 SoX can also combine multiple input files (with the same sample rate and
 number of channels) to form one output file using one of three methods:
 `concatenate' (the default), `mix', or `merge'.
-.P
+.SP
 The overall SoX processing chain can be summarised as follows:
-.P
+.SP
 .ce
 Input(s) \*(RA Combiner \*(RA Effects \*(RA Output
 .SS File Formats
@@ -33,7 +46,7 @@
 The second type is `headerless' (or `raw data'); here,
 the audio data characteristics must be described using the
 SoX command line.
-.P
+.SP
 The following four characteristics are sufficient to describe
 the format of audio data so that it can be processed with SoX:
 .TP
@@ -62,7 +75,7 @@
 .PP
 The term `bit-rate' is sometimes used as an overall measure of an audio
 format and may incorporate elements of all of the above.
-.P
+.SP
 Most self-describing formats also allow textual `comments' to be
 embedded in the file that can be used to describe the audio in some way,
 e.g. for music, the title, the author, etc.
@@ -70,10 +83,10 @@
 There are several mechanisms available for SoX to use to determine or set the
 format characteristics of an audio file.  Depending on the circumstances,
 individual characteristics may be determined or set using different mechanisms.
-.P
+.SP
 To determine the format of an input file, SoX will use, in order of
 precedence and as given or available:
-.P
+.SP
 .TS
 tab (@);
 l l l.
@@ -81,10 +94,10 @@
 @2.@The contents of the file header.
 @3.@The file-name extension.
 .TE
-.P
+.SP
 To set the output file format, SoX will use, in order of
 precedence and as given or available:
-.P
+.SP
 .TS
 tab (@);
 l l lw(6i).
@@ -95,7 +108,7 @@
 to them that is supported by the output file type.
 T}
 .TE
-.P
+.SP
 For all files, SoX will exit with an error
 if the file type cannot be determined; command-line format options may
 need to be added or changed to resolve the problem.
@@ -108,18 +121,18 @@
 many formats used in portable music players (e.g. MP3, Vorbis) where
 adequate fidelity can be retained even with the large compression ratios
 that are needed to make portable players practical.
-.P
+.SP
 Formats that discard audio signal information are called `lossy',
 and formats that do not, `lossless'.  The term `quality' is used as a
 measure of how closely the original audio signal can be reproduced when
 using a lossy format.
-.P
+.SP
 Audio file conversion with SoX is lossless where it can be, i.e. when
 not using lossy compression and the number of bits used in the
 destination format is not less than in the source format.  E.g.
 converting from an 8-bit PCM format to a 16-bit PCM format is lossless
 but converting from an 8-bit PCM format to (8-bit) A-law isn't.
-.P
+.SP
 .I Note:
 SoX converts all audio files to an internal uncompressed
 format before performing any audio processing; this means that
@@ -134,7 +147,7 @@
 Hence, if what is ultimately desired is lossily compressed audio, it is
 highly recommended to perform all audio processing using lossless file
 formats and then convert to the lossy format at the final stage.
-.P
+.SP
 .I Note:
 Applying multiple effects with a single SoX invocation will,
 in general, produce more accurate results than the equivalent using
@@ -144,18 +157,18 @@
 level (or `volume') exceeds the range of the chosen representation.
 It is nearly always undesirable and so should usually be corrected by
 adjusting the volume prior to the point at which clipping occurs.
-.P
+.SP
 In SoX, clipping could occur, as you might expect, when using the
 .B vol
 effect to increase the audio volume, but could also occur with many
 other effects, when converting one format to another, and even when
 simply playing the audio.
-.P
+.SP
 Playing an audio file often involves re-sampling, and processing by
 analogue components that can introduce a small DC offset and/or
 amplification, all of which can produce distortion if the audio signal
 level was initially too close to the clipping point.
-.P
+.SP
 For these reasons, it is usual to make sure that an audio
 file's signal level does not exceed around 70% of the maximum (linear)
 range available, as this will avoid the majority of clipping problems.
@@ -164,11 +177,11 @@
 effect can assist in determining the signal level in an audio file; the
 .B vol
 effect can be used to prevent clipping e.g.
-.P
+.SP
 	sox dull.au bright.au vol \-6 dB treble +6
-.P
+.SP
 guarantees that the treble boost will not clip.
-.P
+.SP
 If clipping occurs at any point during processing, then
 SoX will display a warning message to that effect.
 .SS Input File Balancing
@@ -178,7 +191,7 @@
 volume adjustment effect) after the audio has been combined; however, it
 is often useful to be able to set the volume of (i.e. `balance') the
 inputs individually, before combining takes place.
-.P
+.SP
 For all SoX combining methods (`concatenate', `mix', or `merge'), input
 file volume adjustments can be made manually using the
 .B \-v
@@ -186,13 +199,13 @@
 given for only some of the input files then the others receive no volume
 adjustment.  See the next section for a description of the automatic volume
 adjustments that can apply when mixing input files.
-.P
+.SP
 The \fB\-V\fR option (below) can be used to show the input file volume
 adjustments that have been selected (either manually or automatically).
 .SS Input File Mixing
 There are some special considerations that need to made when mixing
 input files:
-.P
+.SP
 Unlike `concatenate' and `merge', the `mix' combining method has the
 potential to cause clipping in the combiner if no balancing is
 performed.  So for `mix', if manual volume adjustments are not given, to
@@ -201,7 +214,7 @@
 where n is the number of input files.  If this results in audio that is
 too quiet or otherwise unbalanced then the input file volumes should be
 set manually as described above.
-.P
+.SP
 If mixed audio seems loud enough at some points through the audio but
 too quiet in others, then dynamic-range compression should be applied to
 correct this\*msee the
@@ -209,28 +222,28 @@
 effect.
 .SS Examples
 The command line syntax can seem complex, but in essence:
-.P
+.SP
 	sox file.au file.wav
-.P
+.SP
 translates an audio file in Sun .au format
 into a Microsoft WAV file, while
-.P
+.SP
 	sox file.au \-r 12000 \-1 file.wav vol 0\*d5 dither
-.P
+.SP
 performs the same format translation but also
 changes the sampling rate to 12000Hz,
 the sample size to 1 byte (8 bits),
 and applies the \fBvol\fR and \fBdither\fR effects
 to the audio.
-.P
+.SP
 	sox short.au long.au longer.au
-.P
+.SP
 concatenates two audio files to produce a single file, whilst
-.P
+.SP
 	sox \-m music.mp3 voice.wav mixed.flac
-.P
+.SP
 mixes together two audio files.
-.P
+.SP
 See the
 .BR soxexam (1)
 manual page for further examples on how to use
@@ -283,7 +296,7 @@
 and will be mixed together (instead of concatenated)
 to form the output file.
 A mixed audio file cannot be un-mixed.
-.P
+.SP
 See also \fBInput File Mixing\fR above.
 .TP
 \fB\-M\fR, \fB\-\-merge\fR
@@ -295,7 +308,7 @@
 files; a merged file could be un-merged using the
 .B pick
 effect.
-.P
+.SP
 For example, two mono files could be merged to form one
 stereo file; the first and second mono files would become
 the left and right channels of the stereo file.
@@ -307,7 +320,7 @@
 that supports the \fB\-o\fR option, SoX will output Octave
 commands to plot the effect's transfer function, and then exit
 without actually processing any audio.  E.g.
-.P
+.SP
 	sox \-o input-file \-n highpass 1320 > plot.m
 .br
 	octave plot.m
@@ -370,11 +383,11 @@
 decreases the volume; greater than 1 increases it.  If a negative number
 is given, then in addition to the volume adjustment, the audio signal
 will be inverted.
-.P
+.SP
 See also the \fBstat\fR effect for information on how to find
 the maximum volume of an audio file; this can be used to help select
 suitable values for this option.
-.P
+.SP
 See also \fBInput File Balancing\fR above.
 .SS Input And Output File Format Options
 These options apply to the input or output file whose name they
@@ -398,7 +411,7 @@
 Gives the sample rate in Hz of the file.  To cause the output file to have
 a different sample rate than the input file, include this option as a part
 of the output format options.
-.P
+.SP
 If the input and output files have
 different rates then a sample rate change effect must be run.  Since
 SoX has
@@ -409,7 +422,7 @@
 Gives the type of the audio file.  This is useful when the
 file extension is non-standard or when the type can not be determined by
 looking at the header of the file.
-.P
+.SP
 The
 .B \-t
 option can also be used to override the type implied by an input file-name
@@ -416,7 +429,7 @@
 extension, but if overriding with a type that has a header,
 SoX will exit with an appropriate error message if such a header is not
 actually present.
-.P
+.SP
 See \fBFILE TYPES\fR below for a list of supported file types.
 .PP
 \fB\-L\fR, \fB\-\-endian=little\fR
@@ -448,12 +461,12 @@
 The audio data encoding is signed linear (2's complement),
 unsigned linear, \(*m-law (logarithmic), A-law (logarithmic),
 ADPCM, IMA-ADPCM, GSM, or floating-point.
-.P
+.SP
 \(*m-law (or mu-law) and A-law are the U.S. and
 international standards for logarithmic telephone audio compression.
 When uncompressed \(*m-law has roughly the precision of 14-bit PCM audio
 and A-law has roughly the precision of 13-bit PCM audio.
-.P
+.SP
 A-law and \(*m-law are sometimes encoded using reversed bit-ordering
 (i.e. MSB becomes LSB).  Internally, SoX understands how to work with
 these encodings but there is currently no command line option to
@@ -460,7 +473,7 @@
 specify them.  If you need this support then you can use the pseudo
 file types of `.la' and `.lu' to inform SoX of the encoding.  See
 supported file types for more information.
-.P
+.SP
 ADPCM is a form of audio compression that has a good
 compromise between good audio quality and fast encoding/decoding
 time.  It is used for telephone audio compression and places were
@@ -472,7 +485,7 @@
 IMA ADPCM is a specific form of ADPCM compression, slightly simpler
 and slightly lower fidelity than Microsoft's flavor of ADPCM.
 IMA ADPCM is also called DVI ADPCM.
-.P
+.SP
 GSM is currently used for the vast majority of the world's digital
 wireless telephone calls.  It utilises several audio
 formats with different bit-rates and associated speech quality.
@@ -512,7 +525,7 @@
 option (see above for details).
 File types that can be determined
 by a file-name extension are listed with their names preceded by a dot.
-.P
+.SP
 .TP
 .B .8svx
 Amiga 8SVX musical instrument description format.
@@ -530,7 +543,7 @@
 AIFF-C (not compressed, linear), defined in DAVIC 1.4 Part 9 Annex B.
 This format is referred from ARIB STD-B24, which is specified for
 Japanese data broadcasting.  Any private chunks are not supported.
-.P
+.SP
 Note: The input file is currently processed as .aiff.
 .TP
 .B alsa
@@ -557,7 +570,7 @@
 can be dealt with using the
 .B .ul
 format (see below).
-.P
+.SP
 It is possible to override AU file header information
 with the
 .B \-r
@@ -612,13 +625,13 @@
 music.  It is similar to MP3 and Ogg Vorbis, but lossless,
 meaning that audio is compressed in FLAC without any loss in
 quality.
-.P
+.SP
 SoX can decode native FLAC files (.flac) but not Ogg FLAC files (.ogg).
 [But see
 .B .ogg
 below for information relating to support for Ogg
 Vorbis files.]
-.P
+.SP
 SoX has basic support for writing FLAC files: it can encode to
 native FLAC using compression levels 0 to 8.  8 is the default
 compression level and gives the best (but slowest) compression;
@@ -626,7 +639,7 @@
 level can be selected using the
 .B \-C
 option (see above) with a whole number from 0 to 8.
-.P
+.SP
 Note that Replay Gain information is not used by
 SoX if present in FLAC input files and is not generated by
 SoX for FLAC output files, however
@@ -636,7 +649,7 @@
 file.  In this case the Replay Gain information in the output file is
 likely to be incorrect and so should be recalculated using a tool that
 supports this (not SoX).
-.P
+.SP
 FLAC support in
 SoX is optional and requires optional FLAC libraries.  To
 see if there is support for FLAC run \fBsox \-h\fR and look for
@@ -650,7 +663,7 @@
 lots of noise when a given audio signal is encoded and decoded
 multiple times.  This format is used by some voice mail applications.
 It is rather CPU intensive.
-.P
+.SP
 GSM in
 SoX is optional and requires access to an external GSM library.  To see
 if there is support for GSM run \fBsox \-h\fR
@@ -679,13 +692,13 @@
 quality loss.  See also
 .B Ogg Vorbis
 for a similar format.
-.P
+.SP
 MP3 support in
 SoX is optional and requires access to either or both the external
 libmad and libmp3lame libraries.  To
 see if there is support for Mp3 run \fBsox \-h\fR
 and look for it under the list of supported file formats as `mp3'.
-.P
+.SP
 .TP
 .B null
 Null file type.
@@ -695,22 +708,22 @@
 special file-name
 .B \-n
 in place of an input or output file-name.
-.P
+.SP
 Using this file type to input audio is equivalent to
 using a normal audio file that contains an infinite amount
 of silence, and as such is not generally useful unless used
 with an effect that specifies a finite time length
 (such as \fBtrim\fR or \fBsynth\fR).
-.P
+.SP
 Using this type to output audio amounts to discarding the audio
 and is useful mainly with effects that produce information about the
 audio instead of affecting it
 (such as \fBnoiseprof\fR or \fBstat\fR).
-.P
+.SP
 The number of channels and the sampling rate associated with a null file
 are by default 2 and 44\*d1kHz respectively, but these can be overridden
 if necessary by using appropriate \fBFormat Options\fR.
-.P
+.SP
 One other use of the null file type is to use it in conjunction
 with
 .B \-V
@@ -728,7 +741,7 @@
 quality loss.  See also
 .B MP3
 for a similar format.
-.P
+.SP
 SoX can decode all types of Ogg Vorbis files, and can encode at different
 compression levels/qualities given as a number from \-1 (highest
 compression/lowest quality) to 10 (lowest compression, highest quality).
@@ -737,9 +750,9 @@
 .B \-C
 option (see above) with a number from \-1 to 10; fractional numbers (e.g.
 3\*d6) are also allowed.
-.P
+.SP
 Decoding is somewhat CPU intensive and encoding is very CPU intensive.
-.P
+.SP
 Ogg Vorbis in
 SoX is optional and requires access to external Ogg Vorbis libraries.  To
 see if there is support for Ogg Vorbis run \fBsox \-h\fR
@@ -843,7 +856,7 @@
 .B .wav
 Microsoft .WAV RIFF files.
 This is the native audio file format of Windows, and widely used for uncompressed audio.
-.P
+.SP
 Normally \fB.wav\fR files have all formatting information
 in their headers, and so do not need any format options
 specified for an input file.  If any are, they will
@@ -851,7 +864,7 @@
 You had better know what you are doing! Output format
 options will cause a format conversion, and the \fB.wav\fR
 will written appropriately.
-.P
+.SP
 SoX currently can read PCM, ULAW, ALAW, MS ADPCM, and IMA (or DVI) ADPCM.
 It can write all of these formats including the ADPCM encoding.
 Big endian versions of RIFF files, called RIFX, can also be read
@@ -891,7 +904,7 @@
 .SH EFFECTS
 Multiple effects may be applied to the audio by specifying them
 one after another at the end of the command line.
-.P
+.SP
 Optionality is denoted by brackets \fB[ ]\fR;
 multiplicity is denoted by braces \fB{ }\fR or an ellipsis \fB...\fR;
 alternatives are indicated with a vertical bar \fB|\fR.
@@ -909,7 +922,7 @@
 for the output instead of averaging the channels.
 The \fB\-l\fR, and \fB\-r\fR options will do averaging
 in quad-channel files so select the exact channel to prevent this.
-.P
+.SP
 The
 .B avg
 effect can also be invoked with up to 16
@@ -922,10 +935,10 @@
 rb \*(RA rf.
 The next 4 give the right-front output in the same order, then
 left-back and right-back.
-.P
+.SP
 It is also possible to use the 16 numbers to expand or reduce the
 channel count; just specify 0 for unused channels.
-.P
+.SP
 Finally, certain reduced combination of numbers can be specified
 for certain input/output channel combinations.
 .TS
@@ -940,7 +953,7 @@
 4	4	1	adjust balance
 4	4	2	front balance, back balance
 .TE
-.P
+.SP
 .TP
 band \fB[\fR\-n\fB]\fR \fIcenter\fR \fB[\fR\fIwidth\fR\fB]\fR
 Apply a band-pass filter.
@@ -973,9 +986,9 @@
 i.e. peaking at the
 .I center
 frequency and settling around it.
-.P
+.SP
 This effect supports the \fB\-o\fR global option (see above).
-.P
+.SP
 See also \fBfilter\fR for a bandpass filter with steeper shoulders.
 .TP
 bandpass\fB\^|\^\fRbandreject \fIfrequency bandwidth\fR
@@ -984,7 +997,7 @@
 and bandwidth (in Hz, and as determined by the 3dB points)
 \fIbandwidth\fR.
 The filter rolls off at 6dB per octave (20dB per decade).
-.P
+.SP
 These effects support the \fB\-o\fR global option (see above).
 .TP
 bandreject \fIfrequency bandwidth\fR
@@ -996,7 +1009,7 @@
 using a two-pole shelving filter with a response similar to that
 of a standard hi-fi's (Baxandall) tone controls.  This is also
 known as shelving equalisation or EQ.
-.P
+.SP
 \fIgain\fR gives the dB gain at 0Hz (for \fBbass\fR), or whichever is
 the lower of \(ap22kHz and the Nyquist frequency (for \fBtreble\fR).  Its
 useful range is about \-20 (for a large cut) to +20 (for a large
@@ -1004,22 +1017,22 @@
 Beware of
 .B Clipping
 when using a positive \fIgain\fR.
-.P
+.SP
 If desired, the filter can be fine-tuned using the following
 optional parameters (in either order):
-.P
+.SP
 \fIfrequency\fR sets the filter's center frequency and so can be
 used to extend or reduce the frequency range to be boosted or
 cut.  The default value is 100Hz (for \fBbass\fR) or 3kHz (for
 \fBtreble\fR).
-.P
+.SP
 \fIslope\fR is a number between 0 and 1 that determines how
 steep the filter's shelf transition is.  Its useful range is
 about 0\*d3 (for a gentle slope) to 1 (for a steep slope).  The
 default value is 0\*d5.
-.P
+.SP
 These effects support the \fB\-o\fR global option (see above).
-.P
+.SP
 See also \fBequalizer\fR for a peaking equalisation effect.
 .TP
 chorus \fIgain-in gain-out\fR \fB{\fR \fIdelay decay speed depth\fR \-s\fB\^|\^\fR\-t \fB}\fR
@@ -1034,7 +1047,7 @@
 \fIin-dB1\fR,\fIout-dB1\fR\fB[\fR,\fIin-dB2\fR,\fIout-dB2\fR\fB...]\fR
 .br
 \fB[\fR\fIgain\fR \fB[\fR\fIinitial-volume\fR \fB[\fR\fIdelay\fR\fB] ] ]\fR
-.P
+.SP
 Compand (compress or expand) the dynamic range of the audio.  The
 attack and decay time specify the integration time over which the
 absolute value of the input signal is integrated to determine its
@@ -1049,7 +1062,7 @@
 be used to indicate that the input volume should be associated output
 volume.  The points \fB\-inf,\-inf\fR and \fB0,0\fR are assumed; the
 latter may be overridden, but the former may not.
-.P
+.SP
 The third
 (optional) parameter is a post-processing gain in dB which is applied
 after the compression has taken place; the fourth (optional) parameter
@@ -1059,7 +1072,7 @@
 levels before the companding action has begun to operate: it is quite
 probable that in such an event, the output would be severely clipped
 while the compander gain properly adjusts itself.
-.P
+.SP
 The fifth (optional) parameter is a delay in seconds.
 The input signal is analysed immediately to control the compander, but
 it is delayed before being fed to the volume adjuster.
@@ -1072,10 +1085,10 @@
 This is most useful if your audio tends to not be centered around
 a value of 0.  Shifting it back will allow you to get the most volume
 adjustments without clipping.
-.P
+.SP
 The first option is the \fIdcshift\fR value.  It is a floating point number that
 indicates the amount to shift.
-.P
+.SP
 An optional
 .I limitergain
 can be specified as well.  It should have a value much less than 1
@@ -1086,9 +1099,9 @@
 audio-CD format.  The frequency response of pre-emphasized
 recordings is rectified.  The filtering is defined in the
 standard document ISO 908.
-.P
+.SP
 This effect supports the \fB\-o\fR global option (see above).
-.P
+.SP
 .TP
 dither \fB[\fR\fIdepth\fR\fB]\fR
 Apply dithering to the audio.
@@ -1098,7 +1111,7 @@
 By default, the amount of noise added is \(12 bit;
 the optional \fIdepth\fR parameter is a (linear or voltage)
 multiplier of this amount.
-.P
+.SP
 This effect should not be followed by any other effect that
 affects the audio.
 .TP
@@ -1134,7 +1147,7 @@
 around (\fIQ\fR) a central frequency (\fIcentral-frequency\fR),
 leaving all other frequencies untouched (unlike
 bandpass/bandreject filters).
-.P
+.SP
 \fIcentral-frequency\fR is the filter's central frequency in Hz, \fIQ\fR
 its `Q-factor' (see http://en.wikipedia.org/wiki/Q_factor), and
 \fIgain\fR is the gain or attenuation in dB.
@@ -1141,19 +1154,19 @@
 Beware of
 .B Clipping
 when using a positive \fIgain\fR.
-.P
+.SP
 In order to produce complex equalisation curves, this effect
 can be given several times, each with a different central frequency.
-.P
+.SP
 This effect supports the \fB\-o\fR global option (see above).
-.P
+.SP
 See also \fBbass\fR and \fBtreble\fR for shelving equalisation effects.
 .TP
 fade \fB[\fR\fItype\fR\fB]\fR \fIfade-in-length\fR \fB[\fR\fIstop-time\fR \fB[\fR\fIfade-out-length\fR\fB] ]\fR
 Add a fade effect to the beginning, end, or both of the audio.
-.P
+.SP
 For fade-ins, this starts from the first sample and ramps the volume of the audio from 0 to full volume over \fIfade-in-length\fR seconds.  Specify 0 seconds if no fade-in is wanted.
-.P
+.SP
 For fade-outs, the audio will be truncated at
 .I stop-time
 and
@@ -1165,12 +1178,12 @@
 No fade-out is performed if
 .I stop-time
 is not specified.
-.P
+.SP
 All times can be specified in either periods of time or sample counts.
 To specify time periods use the format hh:mm:ss.frac format.  To specify
 using sample counts, specify the number of samples and append the letter `s'
 to the sample count (for example `8000s').
-.P
+.SP
 An optional \fItype\fR can be specified to change the type of envelope.  Choices are \fBq\fR for quarter of a sine wave, \fBh\fR for half a sine wave, \fBt\fR for linear slope, \fBl\fR for logarithmic, and \fBp\fR for inverted parabola.  The default is a linear slope.
 .TP
 filter \fB[\fR\fIlow\fR\fB]\fR\-\fB[\fR\fIhigh\fR\fB] [\fR\fIwindow-len\fR \fB[\fR\fIbeta\fR\fB]]\fR
@@ -1178,18 +1191,18 @@
 window length to the signal.
 \fIlow\fR refers to the frequency of the lower 6dB corner of the filter.
 \fIhigh\fR refers to the frequency of the upper 6dB corner of the filter.
-.P
+.SP
 A low-pass filter is obtained by leaving \fIlow\fR unspecified, or 0.
 A high-pass filter is obtained by leaving \fIhigh\fR unspecified, or 0,
 or greater than or equal to the Nyquist frequency.
-.P
+.SP
 The \fIwindow-len\fR, if unspecified, defaults to 128.
 Longer windows give a sharper cutoff, smaller windows a more gradual cutoff.
-.P
+.SP
 The \fIbeta\fR, if unspecified, defaults to 16.  This selects a Kaiser window.
 You can select a Nuttall window by specifying anything \(<= 2 here.
 For more discussion of beta, look under the \fBresample\fR effect.
-.P
+.SP
 .TP
 flanger \fB[\fR\fIdelay depth regen width speed shape phase interp\fR\fB]\fR
 Apply a flanging effect to the audio.
@@ -1221,15 +1234,15 @@
 Digital delay-line interpolation: linear\^|\^quadratic.
 T}
 .TE
-.P
+.SP
 .TP
 highp\fB\^|\^\fRlowp \fIfrequency\fR
 Apply a single-pole recursive high-pass or low-pass filter with
 3dB point \fIfrequency\fR.
 The filters roll off at 6dB per octave (20dB per decade).
-.P
+.SP
 These effects support the \fB\-o\fR global option (see above).
-.P
+.SP
 See also \fBfilter\fR for filters with a sharper cutoff.
 .TP
 highpass\fB\^|\^\fRlowpass \fIfrequency\fR
@@ -1236,7 +1249,7 @@
 Apply a two-pole Butterworth high-pass or low-pass filter with
 3dB point \fIfrequency\fR.
 The filters roll off at 12dB per octave (40dB per decade).
-.P
+.SP
 These effects support the \fB\-o\fR global option (see above).
 .TP
 lowp \fIfrequency\fR
@@ -1254,7 +1267,7 @@
 \fIin-dB1,out-dB1\fR\fB[\fR,\fIin-dB2,out-dB2\fR\fB...]\fR
 .br
 \fB[\fR\fIgain\fR \fB[\fR\fIinitial-volume\fR \fB[\fR\fIdelay\fR\fB] ] ]\fR" \fIxover-freq\fR
-.P
+.SP
 Multi-band compander is similar to the single band compander but
 the audio is first divided up into bands and then the compander
 is run on each band.  See the \fBcompand\fR effect for the definition of its options.  Compand options are specified between double quotes and the crossover frequency for that band is specified separately with \fIxover-fre\fR.  This can be repeated multiple times to create multiple bands.
@@ -1272,7 +1285,7 @@
 to \fIprofile-file\fR, or to stdout if no \fIprofile-file\fR is specified.
 If there is audio output on stdout then the profile will instead be directed to
 stderr.
-.P
+.SP
 To actually remove the noise, run
 SoX again with the \fInoisered\fR filter.  The
 filter needs one parameter, \fIprofile-file\fR, which contains the noise profile
@@ -1353,11 +1366,11 @@
 polyphase \fB[\fR\-w nut\fB\^|\^\fRham\fB] [\fR\-width long\fB\^|\^\fRshort\fB\^|\^\fR\fIn\fR\fB] [\fR\-cutoff \fIc\fR\fB]\fR
 Change the sampling rate using `polyphase interpolation', a DSP algorithm.
 This method is relatively slow and memory intensive.
-.P
+.SP
 If the \fB\-w\fR parameter is \fBnut\fR, then a Nuttall (~90 dB
 stop-band) window will be used; \fBham\fR selects a Hamming (~43
 dB stop-band) window.  The default is Nutall.
-.P
+.SP
 The \fB\-width\fR parameter specifies the (approximate) width of the filter.
 .B long
 is 1024 samples;
@@ -1368,7 +1381,7 @@
 The
 .B short
 option is not recommended, as it produces poor quality results.
-.P
+.SP
 The \fB\-cutoff\fR value (\fIc\fR) specifies the filter cutoff frequency in terms of fraction of
 frequency bandwidth, also know as the Nyquist frequency.  See
 the \fBresample\fR effect for
@@ -1376,7 +1389,7 @@
 fraction of the original signal
 that should go through.  If down-sampling, this is the fraction of the
 signal left after down-sampling.  The default is 0\*d95.
-.P
+.SP
 See also
 .B rabbit
 and
@@ -1392,7 +1405,7 @@
 sinc algorithm; the default is \fB\-c0\fR, which is probably the best
 quality algorithm for general use currently available in SoX.
 Algorithm 3 is zero-order hold, and 4 is linear interpolation.
-.P
+.SP
 See also
 .B polyphase
 and
@@ -1417,13 +1430,13 @@
 \fBresample\fR and \fBpolyphase\fR at
 http://leute.server.de/wilde/resample.html; see \fBrabbit\fR for a
 pointer to its own documentation.
-.P
+.SP
 By default, linear interpolation is used,
 with a window width about 45 samples at the lower of the two rates.
 This gives an accuracy of about 16 bits, but insufficient stop-band rejection
 in the case that you want to have roll-off greater than about 0\*d8 of
 the Nyquist frequency.
-.P
+.SP
 The \fB\-q*\fR options will change the default values for roll-off and beta
 as well as use quadratic interpolation of filter
 coefficients, resulting in about 24 bits precision.
@@ -1430,10 +1443,10 @@
 The \fB\-qs\fR, \fB\-q\fR, or \fB\-ql\fR options specify increased accuracy
 at the cost of lower execution speed.  It is optional to specify
 roll-off and beta parameters when using the \fB\-q*\fR options.
-.P
+.SP
 Following is a table of the reasonable defaults which are built-in to
 SoX:
-.P
+.SP
 .TS
 center box;
 cB cB cB cB cB
@@ -1445,18 +1458,18 @@
 \-q	75	0\*d875	16	quadratic
 \-ql	149	0\*d94	16	quadratic
 .TE
-.P
+.SP
 \fB\-qs\fR, \fB\-q\fR, or \fB\-ql\fR use window lengths of 45, 75, or 149
 samples, respectively, at the lower sample-rate of the two files.
 This means progressively sharper stop-band rejection, at proportionally
 slower execution times.
-.P
+.SP
 \fIrolloff\fR refers to the cut-off frequency of the
 low pass filter and is given in terms of the
 Nyquist frequency for the lower sample rate.  rolloff therefore should
 be something between 0 and 1, in practise 0\*d8\-0\*d95.  The defaults are
 indicated above.
-.P
+.SP
 The \fINyquist frequency\fR is equal to half the sample rate.  Logically,
 this is because the A/D converter needs at least 2 samples to detect 1
 cycle at the Nyquist frequency.  Frequencies higher then the Nyquist
@@ -1463,12 +1476,12 @@
 will actually appear as lower frequencies to the A/D converter and
 is called aliasing.  Normally, A/D converts run the signal through
 a lowpass filter first to avoid these problems.
-.P
+.SP
 Similar problems will happen in software when reducing the sample rate of
 an audio file (frequencies above the new Nyquist frequency can be aliased
 to lower frequencies).  Therefore, a good resample effect
 will remove all frequency information above the new Nyquist frequency.
-.P
+.SP
 The \fIrolloff\fR refers to how close to the Nyquist frequency this cutoff
 is, with closer being better.  When increasing the sample rate of an
 audio file you would not expect to have any frequencies exist that are
@@ -1477,12 +1490,12 @@
 Nyquist frequency.  In that case the \fIrolloff\fR refers to how close
 to the original Nyquist frequency to use a highpass filter to remove
 these artifacts, with closer also being better.
-.P
+.SP
 The \fIbeta\fR parameter
 determines the type of filter window used.  Any value greater than 2 is
 the beta for a Kaiser window.  Beta \(<= 2 selects a Nuttall window.
 If unspecified, the default is a Kaiser window with beta 16.
-.P
+.SP
 In the case of Kaiser window (beta > 2), lower betas produce a somewhat
 faster transition from pass-band to stop-band, at the cost of noticeable artifacts.
 A beta of 16 is the default, beta less than 10 is not recommended.  If you want
@@ -1491,18 +1504,18 @@
 Nuttall window has somewhat steeper cutoff than the default Kaiser window.
 You will probably not need to use the beta parameter at all, unless you are
 just curious about comparing the effects of Nuttall vs. Kaiser windows.
-.P
+.SP
 This is the default effect if the two files have different sampling rates.
 Default parameters are, as indicated above, Kaiser window of length 45,
 roll-off 0\*d80, beta 16, linear interpolation.
-.P
+.SP
 \fBNOTE:\fR \fB\-qs\fR is only slightly slower, but more accurate for
 16-bit or higher precision.
-.P
+.SP
 \fBNOTE:\fR In many cases of up-sampling, no interpolation is needed,
 as exact filter coefficients can be computed in a reasonable amount of space.
 To be precise, this is done when
-.P
+.SP
 .ce 3
 input-rate < output-rate
 and
@@ -1528,9 +1541,9 @@
 Requires disk space to store the data to be reversed.
 .TP
 silence \fIabove-periods\fR \fB[\fR\fIduration threshold\fR\fB[\fRd\fB\^|\^\fR%\fB] [\fR\fIbelow-periods duration threshold\fR\fB[\fRd\fB\^|\^\fR%\fB] ]\fR
-.P
+.SP
 Removes silence from the beginning, middle, or end of the audio.  Silence is anything below a specified threshold.
-.P
+.SP
 The \fIabove-periods\fR value is used to indicate if audio should be trimmed at
 the beginning of the audio.  A value of zero indicates no silence
 should be trimmed from the beginning.  When specifying an non-zero
@@ -1541,16 +1554,16 @@
 For example, if you had an audio file with two songs that each contained
 2 seconds of silence before the song, you could specify an \fIabove-period\fR
 of 2 to strip out both silence periods and the first song.
-.P
+.SP
 When \fIabove-periods\fR is non-zero, you must also specify a \fIduration\fR and
 \fIthreshold\fR.  \fIDuration\fR indications the amount of time that non-silence must be
 detected before it stops trimming audio.  By increasing the duration, burst of noise can be treated as silence and trimmed off.
-.P
+.SP
 \fIThreshold\fR is used to indicate what sample value you should treat as
 silence.  For digital audio, a value of 0 may be fine but for audio
 recorded from analog, you may wish to increase the value to account
 for background noise.
-.P
+.SP
 When optionally trimming silence from the end of the audio, you specify
 a \fIbelow-periods\fR count.  In this case, \fIbelow-period\fR means
 to remove all audio after silence is detected.
@@ -1559,7 +1572,7 @@
 if you have a song with 2 seconds of silence in the middle and 2 second
 at the end, you could set below-period to a value of 2 to skip over the
 silence in the middle of the audio.
-.P
+.SP
 For \fIbelow-periods\fR, \fIduration\fR specifies a period of silence
 that must exist before audio is not copied any more.  By specifying
 a higher duration, silence that is wanted can be left in the audio.
@@ -1566,7 +1579,7 @@
 For example, if you have a song with an expected 1 second of silence
 in the middle and 2 seconds of silence at the end, a duration of 2
 seconds could be used to skip over the middle silence.
-.P
+.SP
 Unfortunately, you must know the length of the silence at the
 end of your audio file to trim off silence reliably.  A work around is
 to use the \fBsilence\fR effect in combination with the \fBreverse\fR effect.
@@ -1573,7 +1586,7 @@
 By first reversing the audio, you can use the \fIabove-periods\fR
 to reliably trim all audio from what looks like the front of the file.
 Then reverse the file again to get back to normal.
-.P
+.SP
 To remove silence from the middle of a file, specify a
 \fIbelow-periods\fR that is negative.  This value is then
 treated as a positive value and is also used to indicate the
@@ -1580,7 +1593,7 @@
 effect should restart processing as specified by the
 \fIabove-periods\fR, making it suitable for removing periods of
 silence in the middle of the audio.
-.P
+.SP
 The \fIperiod\fR counts are in units of samples.  \fIDuration\fR counts may be in the format of hh:mm:ss.frac, or the exact count of samples.  \fIThreshold\fR numbers may be suffixed with
 .B d
 to indicate the value is in decibels, or
@@ -1595,7 +1608,7 @@
 `c', the number of cents (i.e. 100ths of a semitone) by
 which the pitch (and tempo) should be adjusted: greater than 0
 increases, less than 0 decreases.
-.P
+.SP
 By default, the speed change is performed by the \fBresample\fR
 effect with its default parameters.  For higher quality
 resampling, in addition to the \fBspeed\fR effect, specify
@@ -1606,7 +1619,7 @@
 Do a statistical check on the input file,
 and print results on the standard error file.  Audio is passed
 unmodified through the SoX processing chain.
-.P
+.SP
 The `Volume Adjustment:' field in the statistics
 gives you the parameter to the
 .B \-v
@@ -1615,13 +1628,13 @@
 Note: See the discussion on
 .B Clipping
 above for reasons why it is rarely a good idea to actually do this.
-.P
+.SP
 The option
 .B \-v
 will print out the `Volume Adjustment:' field's value only and
 return.  This could be of use in scripts to auto convert the
 volume.
-.P
+.SP
 The
 .B \-s
 option is used to scale the input data by a given factor.  The default value
@@ -1630,16 +1643,16 @@
 is the max value of a signed long variable (0x7fffffff).  Internal effects
 always work with signed long PCM data and so the value should relate to this
 fact.
-.P
+.SP
 The
 .B \-rms
 option will convert all output average values to `root mean square'
 format.
-.P
+.SP
 The
 .B \-freq
 option calculates the input's power spectrum and prints it to standard error.
-.P
+.SP
 There is also an optional parameter
 .B \-d
 that will print out a hex dump of the
@@ -1684,7 +1697,7 @@
 the output from the previous stage.
 Audio for each channel in a multi-channel audio file can be synthesised
 independently.
-.P
+.SP
 Though this effect is used to generate audio, an input file must
 still be specified.  This can be used to set the synthesised audio
 length, the number of channels, and the sampling rate, however since the
@@ -1692,78 +1705,78 @@
 .B null
 file `\fB\-n\fR' is usually used instead (and the length specified
 as a parameter to \fBsynth\fR).
-.P
+.SP
 For example, the following produces a 3 second, 44\*d1kHz,
 stereo audio file containing a sine-wave swept from 300 to 3300Hz.
-.P
+.SP
 	sox \-n output.au synth 3 sine 300\-3300
-.P
+.SP
 This produces an 8kHz mono version:
-.P
+.SP
 	sox \-r 8000 \-c 1 \-n output.au synth 3 sine 300\-3300
-.P
+.SP
 Multiple channels can be synthesised by specifying the set of
 parameters shown between braces (\fB{}\fR) multiple times;
 the following puts the swept tone in the left channel and adds `brown'
 noise in the right:
-.P
+.SP
 	sox \-n output.au synth 3 sine 300\-3300 brownnoise
-.P
+.SP
 The following example shows how two synth effects can be cascaded
 to create a more complex waveform:
-.P
+.SP
 	sox \-n output.au synth 0\*d5 sine 200\-500 synth 0\*d5 sine fmod 700\-100
-.P
+.SP
 Frequencies can also specified in terms of musical semitones relative to
 `middle A' (440Hz);  the following could be used to help tune
 a guitar's `low E' string (on a system that supports
 \fBalsa\fR):
-.P
+.SP
 	sox \-n \-t alsa default synth sine %\-5
-.P
+.SP
 The following produces a chord with a pipe-organ sound:
-.P
+.SP
 	sox \-c4 \-n \-c1 Am7.au synth sin %0 sin %3 sin %7 sin %10 avg fade q 0\*d1 1 0\*d1
-.P
+.SP
 N.B.  This effect generates audio at maximum volume, which means that there
 is a high chance of clipping when using the audio subsequently, so
 in most cases, you will want to follow this effect with the \fBvol\fR
 effect to select a suitable attenuation.
-.P
+.SP
 A detailed description of each
 .B synth
 parameter follows:
-.P
+.SP
 \fIlen\fR is the length of audio to synthesise expressed as a time
 or as a number of samples;
 0=inputlength, default=0.
-.P
+.SP
 The format for specifying lengths in time is hh:mm:ss.frac.  The format
 for specifying sample counts is the number of samples with the letter
 `s' appended to it.
-.P
+.SP
 \fItype\fR is one of sine, square, triangle, sawtooth, trapezium, exp,
 \fB[\fRwhite\fB]\fRnoise, pinknoise, brownnoise; default=sine
-.P
+.SP
 \fIcombine\fR is one of create, mix, amod (amplitude modulation), fmod
 (frequency modulation); default=create
-.P
+.SP
 \fIfreq\fR/\fIfreq2\fR are the frequencies at the beginning/end of
 synthesis in Hz or, if preceded with `%', semitones relative to A
 (440Hz); for both, default=%0.  Not used for noise.
-.P
+.SP
 \fIoff\fR is the bias (DC-offset) of the signal in percent; default=0.
-.P
+.SP
 \fIph\fR is the phase shift in percentage of 1 cycle; default=0.  Not
 used for noise.
-.P
+.SP
 \fIp1\fR is the percentage of each cycle that is `on' (square), or
 `rising' (triangle, exp, trapezium); default=50 (square, triangle, exp),
 default=10 (trapezium).
-.P
+.SP
 \fIp2\fR trapezium: the percentage through each cycle at which `falling'
 begins; default=50. exp: the amplitude in percent; default=100.
-.P
+.SP
 \fIp3\fR trapezium: the percentage through each cycle at which `falling'
 ends; default=60.
 .TP
@@ -1775,12 +1788,12 @@
 Trim can trim off unwanted audio from the beginning and end of the
 audio.  Audio is not sent to the output stream until
 the \fIstart\fR location is reached.
-.P
+.SP
 The optional \fIlength\fR parameter tells the number of samples to output
 after the \fIstart\fR sample and is used to trim off the back side of the
 audio.  Using a value of 0 for the \fIstart\fR parameter will allow
 trimming off the back side only.
-.P
+.SP
 Both options can be specified using either an amount of time or an
 exact count of samples.  The format for specifying lengths in time is
 hh:mm:ss.frac.  A start value of 1:30\*d5 will not start until 1 minute,
@@ -1809,7 +1822,7 @@
 .B vol
 is an effect like any other so can be applied anywhere, and several times
 if necessary, during the processing chain.
-.P
+.SP
 The amount to change the volume is given by
 .I gain
 which is interpreted, according to the given \fItype\fR, as follows: if
@@ -1819,7 +1832,7 @@
 is an amplitude (i.e. voltage or linear) ratio,
 if \fBpower\fR, then a power (i.e. wattage or voltage-squared) ratio,
 and if \fBdB\fR, then a power change in dB.
-.P
+.SP
 When
 .I type
 is \fBamplitude\fR or \fBpower\fR, a
@@ -1830,7 +1843,7 @@
 a negative
 .I gain
 inverts the audio signal in addition to adjusting its volume.
-.P
+.SP
 When
 .I type
 is \fBdB\fR, a
@@ -1838,15 +1851,15 @@
 of 0 leaves the volume unchanged,
 less than 0 decreases it,
 and greater than 0 increases it.
-.P
+.SP
 See http://en.wikipedia.org/wiki/Decibel
 for a detailed discussion on electrical (and hence audio signal)
 voltage and power ratios.
-.P
+.SP
 Beware of
 .B Clipping
 when the increasing the volume.
-.P
+.SP
 An optional \fIlimitergain\fR value can be specified and should be a
 value much less
 than 1 (e.g. 0\*d05 or 0\*d02) and is used only on peaks to prevent clipping.
@@ -1863,17 +1876,17 @@
 .BR play (1),
 .BR rec (1),
 .BR soxexam (1)
-.P
+.SP
 The SoX web page at http://sox.sourceforge.net
 .SH LICENSE
 Copyright 1991 Lance Norskog and Sundry Contributors.
 Copyright 1998\-2007 by Chris Bagwell and SoX Contributors.
-.P
+.SP
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 2, or (at your option)
 any later version.
-.P
+.SP
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the