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

LPANAL(1)						  The Canonical Csound Reference						 LPANAL(1)

NAME
lpanal - Performs both linear predictive and pitch-tracking analysis on a soundfile. . DESCRIPTION
Linear predictive analysis for the Csound Linear Predictive Coding (LPC) Resynthesis opcodes. SYNTAX
csound -U lpanal [flags] infilename outfilename lpanal [flags] infilename outfilename INITIALIZATION
lpanal performs both lpc and pitch-tracking analysis on a soundfile to produce a time-ordered sequence of frames of control information suitable for Csound resynthesis. Analysis is conditioned by the control flags below. A space is optional between the flag and its value. -a -- [alternate storage] asks lpanal to write a file with filter poles values rather than the usual filter coefficient files. When lpread / lpreson are used with pole files, automatic stabilization is performed and the filter should not get wild. (This is the default in the Windows GUI) - Changed by Marc Resibois. -s srate -- 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. The default is 1. -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. -p npoles -- number of poles for analysis. The default is 34, the maximum 50. -h hopsize -- hop size (in samples) between frames of analysis. This determines the number of frames per second (srate / hopsize) in the output control file. The analysis framesize is hopsize * 2 samples. The default is 200, the maximum 500. -C string -- text for the comments field of the lpfile header. The default is the null string. -P mincps -- lowest frequency (in Hz) of pitch tracking. -P0 means no pitch tracking. -Q maxcps -- highest frequency (in Hz) of pitch tracking. The narrower the pitch range, the more accurate the pitch estimate. The defaults are -P70, -Q200. -v verbosity -- level of terminal information during analysis. o 0 = none o 1 = verbose o 2 = debug The default is 0. EXAMPLES
lpanal -a -p26 -d2.5 -P100 -Q400 audiofile.test lpfil22 will analyze the first 2.5 seconds of file "audiofile.test", producing srate/200 frames per second, each containing 26-pole filter coefficients and a pitch estimate between 100 and 400 Hertz. Stabilized (-a) output will be placed in "lpfil22" in the current directory. File Format Output is a file comprised of an identifiable header plus a set of frames of floating point analysis data. Each frame contains four values of pitch and gain information, followed by npoles filter coefficients. The file is readable by Csound's lpread. lpanal is an extensive modification of Paul Lanksy's lpc analysis programs. AUTHORS
Barry Vercoe MIT Media Lab Author. Dan Ellis MIT Media Lab, Cambridge Massachussetts Author. COPYRIGHT
5.07 06/23/2009 LPANAL(1)
Man Page