QUICK-REF - CsoundManual - Top of this section - Previous - Contents - Index - Next section  

CVANAL

CVANAL - Impulse Response Fourier Analysis for CONVOLVE operator
        csound -U cvanal [flags] infilename outfilename
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 analysed. The default is 0.0

-d<duration> duration (in seconds) of the audio segment to be analysed. The default of 0.0 means to the end of the file.

EXAMPLE:

                cvanal asound cvfile
will analyse the soundfile "asound" to produce the file "cvfile" for the use with CONVOLVE.

HINT: 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.

AUTHOR:

Greg Sullivan
(Based on algorithm given in 'Elements Of Computer Music', by F. Richard Moore.


QUICK-REF - CsoundManual - Top of this section - Previous - Contents - Index - Next section  

HTML Csound Manual - © Jean Piché & Peter J. Nix, 1994-97