RESAMPLE(1) | General Commands Manual | RESAMPLE(1) |
resample - resample a 16-bit mono or stereo sound file by an arbitrary factor
resample [-by factor] [-to newSrate] [-f filterFile] [-n] [-l] [-trace] [-version] inputFile [outputFile]
The resample program takes a 16-bit mono or stereo sound file and performs bandlimited interpolation to produce an output sound file have a desired new sampling rate. The output file is in the same format as the input.
To convert the sampling rate from 48 kHz (used by DAT machines) to 44.1 kHz (the standard sampling rate for Compact Discs), the command line would look something like
resample -to 44100 dat.snd cd.snd or resample -by 0.91875 dat.snd cd.snd
Any reasonable sampling rate can be converted to any other. (Note that, in this example, if you have obtained a direct-digital transfer from DAT or CD, you probably have some pre-emphasis filtering which should be canceled using a digital filter. See README.deemph in the resample release for further information)
Source code and further documentation may be found at the Digital Audio Resampling Home Page (DARHP) located at
http://ccrma.stanford.edu/~jos/resample/
The first version of this software was written by Julius O. Smith III <jos /at/ ccrma /dot/ stanford /dot/ edu> at CCRMA <http://ccrma.stanford.edu> in 1981. It was called SRCONV and was written in SAIL for PDP-10 compatible machines (see the DARHP for that code). The algorithm was first published in
Smith, Julius O. and Phil Gossett. ``A Flexible Sampling-Rate Conversion Method,'' Proceedings (2): 19.4.1-19.4.4, IEEE Conference on Acoustics, Speech, and Signal Processing, San Diego, March 1984.
An expanded tutorial based on this paper is available at the DARHP.
Circa 1988, the SRCONV program was translated from SAIL to C by Christopher Lee Fraley working with Roger Dannenberg at CMU.
Since then, the C version has been maintained by jos.
Sndlib support was added 6/99 by John Gibson <jgg9c@virginia.edu>.
The resample program is free software distributed in accordance with the Lesser GNU Public License (LGPL). There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5 Jan 2006 | CCRMA |