dctinv — Inverse Discrete Cosine Transform of a sample array (type-III DCT)
Applies an Inverse 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.
iout[] -- output array containing the IDCT. It will be created if it does not exist.
iin[] -- input array containing the input
kout[] -- output array containing the IDCT. It will be created if it does not exist.
kin[] -- input array containing the input
Here is an example of the dctinv opcode. Play dctinv.csd
Example 213. Example of the dctinv opcode.
See the sections Real-time Audio and Command Line Flags for more information on using command line flags.
<CsoundSynthesizer> <CsOptions> </CsOptions> <CsInstruments> instr 1 iArr[] fillarray 1,2,3,4 iDCT[] dct iArr iiDCT[] dctinv iDCT prints "%.1f %.1f %.1f %.1f => %.1f %.1f %.1f %.1f\n", iArr[0], iArr[1], iArr[2], iArr[3], iiDCT[0], iiDCT[1], iiDCT[2], iiDCT[3] endin </CsInstruments> <CsScore> i1 0 0 </CsScore> </CsoundSynthesizer>