GENwaveGENwave"wave"
Generates a compactly supported wavelet function.
Description
Creates a compactly supported wavelet, scaling function or wavelet
packet. The output function is obtained by deconvolution of
corresponding mirror filter impulse response. This procedure is
applied in an iterative fashion.
The filter bank used in classic discrete wavelet transform grows
only towards low frequencies. Meanwhile wavelet packet transform
introduces any possible direction of tree's growth. The sequence
of mirror filters used in deconvolution is determined by binary
form of seq value. "0" corresponds to low-pass filter and "1" to
high-pass.
The number of iteration steps is determined by filter's length
and size of function table. I.e. for filter length 8 and table
size 256 there are log2(256/8) = 5 iterations available.
Syntaxf # time size "wave" fnsf seq rescaleInitializationsize -- number of points in the table. Must
be a power of 2 or power-of-2 plus 1 (see f statement).
fnsf -- pre-existing table with scaling
function coefficients.
seq -- non-negative integer number which
corresponds to sequence of low-pass and high-pass mirror filters
during deconvolution procedure.
rescale -- if not zero the table is not rescaled
Examples
Here is an example of the GENwave routine. It uses the file
genwave.csd.
Example of the GENwave routine.
See the sections Real-time
Audio and Command Line
Flags for more information on using
command line flags.
See Also
Ingrid Daubechies. Ten Lectures on Wavelets, SIAM 1992.
Pedro A.G. Batista. An Introduction to Sound Synthesis with
Wavelet Packets, Csound Book CD Chapters, MIT 2000.
Victor M. Wickerhauser. Acoustic Signal Compression with Wavelet
Packets, Yale 1992.
CreditsWritten by Gleb RogozinskySaint-Petersburg University of Film and TelevisionSaint-Petersburg, RussiaApril 2012