dctArray Operations: Discrete Cosine Transformdctdct
Discrete Cosine Transform of a sample array (type-II DCT)
Description
Applies a forward Discrete Cosine Transform to an input
1-dimensional array producing an array of the same size
containing the transform. Currently only power-of-two sizes are
implemented. Available in i-time or perf (k-rate) versions.
Syntaxkout[] dct kin[]iout[] dct iin[]Initializationiout[] -- output array containing the DCT. It will be created if it does not exist.
iin[] -- input array containing the input
Performancekout[] -- output array containing the DCT. It will be created if it does not exist.
kin[] -- input array containing the input
Examples
Here is an example of the dct opcode. It uses the file dct.csd.Example of the dct opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See AlsoVectorial opcodes,
array opcodes,
dctinvCreditsAuthor: &namevictor;NUI Maynooth2014New in version 6.04