cepsinv
Prev | Orchestra Opcodes and Operators | Next

## cepsinv

cepsinv — Calculate the inverse cepstrum of an array.

## Description

## Syntax

    kenv cepsinv keps[]

## Performance

keps[] -- the cepstrum input, an array of size N+1, where N is power-of-two, containing the cepstral coefficients.

kenv -- the inverse cepstrum (spectral envelope), an array of N+1 magnitudes.

## Examples

Here is an example of the use of the cepsinv opcode. It uses the file cepsinv.csd.

Example 118. Example of the cepsinv 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

    a1 diskin "fox.wav",1,0,1
    k1 randh  80, 2.5
    a2 vco2  8, 220+k1
    fsig pvsanal a1,1024,256,1024,1
    fsig2 pvsanal a2,1024,256,1024,1
    keps[] pvsceps fsig,30
    kenv[] cepsinv keps
    fenv tab2pvs r2c(kenv)
    fvoc pvsfilter fsig2, fenv, 1
    asig pvsynth fvoc

        out asig
    endin

    </CsInstruments>
    <CsScore>
    i1 0 60
    </CsScore>
    </CsoundSynthesizer>

## Credits

Author: Victor Lazzarini
2014

Prev | Up | Next
ceps | Home | cggoto