csound -U cvanal [flags] infilename outfilenamecvanal 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.
cvanal asound cvfilewill 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.
***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.