Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

cvanal(1) [debian man page]

CVANAL(1)						  The Canonical Csound Reference						 CVANAL(1)

NAME
cvanal - Converts a soundfile into a single Fourier transform frame. . DESCRIPTION
Impulse Response Fourier Analysis for convolve operator SYNTAX
csound -U cvanal [flags] infilename outfilename cvanal [flags] infilename outfilename INITIALIZATION
cvanal -- converts a soundfile into a single Fourier transform frame. The output file can be used by the convolve operator to perform Fast Convolution between an input signal and the original impulse response. Analysis is conditioned by the flags below. A space is optional between the flag and its argument. -s rate -- sampling rate of the audio input file. This will over-ride the srate of the soundfile header, which otherwise applies. If neither is present, the default is 10000. -c channel -- channel number sought. If omitted, the default is to process all channels. If a value is given, only the selected channel will be processed. -b begin -- beginning time (in seconds) of the audio segment to be analyzed. The default is 0.0 -d duration -- duration (in seconds) of the audio segment to be analyzed. The default of 0.0 means to the end of the file. EXAMPLES
cvanal asound cvfile will analyze the soundfile "asound" to produce the file "cvfile" for the use with convolve. To use data that is not already contained in a soundfile, a soundfile converter that accepts text files may be used to create a standard audio file, e.g., the .DAT format for SOX. This is useful for implementing FIR filters. Files The output file has a special convolve header, containing details of the source audio file. The analysis data is stored as "float", in rectangular (real/imaginary) form. Note The analysis file is not system independent! Ensure that the original impulse recording/data is retained. If/when required, the analysis file can be recreated. CREDITS
Author: Greg Sullivan Based on algorithm given in Elements Of Computer Music, by F. Richard Moore. AUTHORS
Barry Vercoe MIT Media Lab Author. Dan Ellis MIT Media Lab, Cambridge Massachussetts Author. COPYRIGHT
5.10 08/01/2011 CVANAL(1)

Check Out this Related Man Page

SRCONV(1)						  The Canonical Csound Reference						 SRCONV(1)

NAME
srconv - Converts the sample rate of an audio file. . DESCRIPTION
Converts the sample rate of an audio file at sample rate Rin to a sample rate of Rout. Optionally the ratio (Rin / Rout) may be linearly time-varying according to a set of (time, ratio) pairs in an auxiliary file. SYNTAX
srconv [flags] infile INITIALIZATION
Flags: o -P num = pitch transposition ratio (srate / r) [don't specify both P and r] o -P num = pitch transposition ratio (srate / r) [don't specify both P and r] o -Q num =quality factor (1, 2, 3, or 4: default = 2) o -i filnam = auxiliary breakpoints file (no breakpoint by default. i.e. No ratio change) o -r num = output sample rate (must be specified) o -o fnam = sound output filename o -A = create an AIFF format output soundfile o -J = create an IRCAM format output soundfile o -W = create a WAV format output soundfile o -h = no header on output soundfile o -c = 8-bit signed_char sound samples o -a = alaw sound samples o -8 = 8-bit unsigned_char sound samples o -u = ulaw sound samples o -s = short_int sound samples o -l = long_int sound samples o -f = float sound samples o -r N = orchestra srate override o -K = Do not generate PEAK chunks o -R = continually rewrite header while writing soundfile (WAV/AIFF) o -H# = print a heartbeat style 1, 2 or 3 at each soundfile write o -N = notify (ring the bell) when score or miditrack is done o -- fnam = log output to file This program performs arbitrary sample-rate conversion with high fidelity. The method is to step through the input at the desired sampling increment, and to compute the output points as appropriately weighted averages of the surrounding input points. There are two cases to consider: 1. sample rates are in a small-integer ratio - weights are obtained from table. 2. sample rates are in a large-integer ratio - weights are linearly interpolated from table. Calculate increment: if decimating, then window is impulse response of low-pass filter with cutoff frequency at half of output sample rate; if interpolating, then window is impulse response of lowpass filter with cutoff frequency at half of input sample rate. CREDITS
Author: Mark Dolson August 26, 1989 Author: John ffitch December 30, 2000 AUTHORS
Barry Vercoe MIT Media Lab Author. Dan Ellis MIT Media Lab, Cambridge Massachussetts Author. COPYRIGHT
5.10 08/01/2011 SRCONV(1)
Man Page