csound-expression-0.1.0: Csound combinator library

CsoundExpr.Opcodes.Spectral.SiggenStft

Description

Short-time Fourier Transform (STFT) Resynthesis

Synopsis

Documentation

tableseg :: [Irate] -> SignalOutSource

  • opcode : tableseg
  • syntax :
   tableseg ifn1, idur1, ifn2 [, idur2] [, ifn3] [...]
  • description :

tableseg is like linseg but interpolate between values in a stored function tables. The result is a new function table passed internally to any following vpvoc which occurs before a subsequent tableseg (much like lpread/lpreson pairs work). The uses of these are described below under vpvoc.

pvadd :: (K k0, K k1) => [Irate] -> k0 -> k1 -> String -> Irate -> Irate -> ArateSource

  • opcode : pvadd
  • syntax :
   ares pvadd ktimpnt, kfmod, ifilcod, ifn, ibins [, ibinoffset] 
       [, ibinincr] [, iextractmode] [, ifreqlim] [, igatefn]
  • description :

pvadd reads from a pvoc file and uses the data to perform additive synthesis using an internal array of interpolating oscillators. The user supplies the wave table (usually one period of a sine wave), and can choose which analysis bins will be used in the re-synthesis.

pvbufread :: K k0 => k0 -> Irate -> SignalOutSource

  • opcode : pvbufread
  • syntax :
   pvbufread ktimpnt, ifile
  • description :

pvbufread reads from a pvoc file and makes the retrieved data available to any following pvinterp and pvcross units that appear in an instrument before a subsequent pvbufread (just as lpread and lpreson work together). The data is passed internally and the unit has no output of its own.

pvcross :: (K k0, K k1, K k2, K k3) => [Irate] -> k0 -> k1 -> Irate -> k2 -> k3 -> ArateSource

  • opcode : pvcross
  • syntax :
   ares pvcross ktimpnt, kfmod, ifile, kampscale1, kampscale2 [, ispecwp]
  • description :

pvcross applies the amplitudes from one phase vocoder analysis file to the data from a second file and then performs the resynthesis. The data is passed, as described above, from a previously called pvbufread unit. The two k-rate amplitude arguments are used to scale the amplitudes of each files separately before they are added together and used in the resynthesis (see below for further explanation). The frequencies of the first file are not used at all in this process. This unit simply allows for cross-synthesis through the application of the amplitudes of the spectra of one signal to the frequencies of a second signal. Unlike pvinterp, pvcross does allow for the use of the ispecwp as in pvoc and vpvoc.

pvinterp :: (K k0, K k1, K k2, K k3, K k4, K k5, K k6, K k7) => k0 -> k1 -> Irate -> k2 -> k3 -> k4 -> k5 -> k6 -> k7 -> ArateSource

  • opcode : pvinterp
  • syntax :
   ares pvinterp ktimpnt, kfmod, ifile, kfreqscale1, kfreqscale2, 
       kampscale1, kampscale2, kfreqinterp, kampinterp
  • description :

pvinterp interpolates between the amplitudes and frequencies, on a bin by bin basis, of two phase vocoder analysis files (one from a previously called pvbufread unit and the other from within its own argument list), allowing for user defined transitions between analyzed sounds. It also allows for general scaling of the amplitudes and frequencies of each file separately before the interpolated values are calculated and sent to the resynthesis routines. The kfmod argument in pvinterp performs its frequency scaling on the frequency values after their derivation from the separate scaling and subsequent interpolation is performed so that this acts as an overall scaling value of the new frequency components.

pvoc :: (K k0, K k1) => [Irate] -> k0 -> k1 -> String -> ArateSource

  • opcode : pvoc
  • syntax :
   ares pvoc ktimpnt, kfmod, ifilcod [, ispecwp] [, iextractmode] 
       [, ifreqlim] [, igatefn]
  • description :

Implements signal reconstruction using an fft-based phase vocoder.

pvread :: K k0 => k0 -> Irate -> Irate -> MultiOutSource

  • opcode : pvread
  • syntax :
   kfreq, kamp pvread ktimpnt, ifile, ibin
  • description :

pvread reads from a pvoc file and returns the frequency and amplitude from a single analysis channel or bin. The returned values can be used anywhere else in the Csound instrument. For example, one can use them as arguments to an oscillator to synthesize a single component from an analyzed signal or a bank of pvreads can be used to resynthesize the analyzed sound using additive synthesis by passing the frequency and magnitude values to a bank of oscillators.

tablexseg :: [Irate] -> SignalOutSource

  • opcode : tablexseg
  • syntax :
   tablexseg ifn1, idur1, ifn2 [, idur2] [, ifn3] [...]
  • description :

tablexseg is like expseg but interpolate between values in a stored function tables. The result is a new function table passed internally to any following vpvoc which occurs before a subsequent tablexseg (much like lpread/lpreson pairs work). The uses of these are described below under vpvoc.

vpvoc :: (K k0, K k1) => [Irate] -> k0 -> k1 -> Irate -> ArateSource

  • opcode : vpvoc
  • syntax :
   ares vpvoc ktimpnt, kfmod, ifile [, ispecwp] [, ifn]
  • description :

Implements signal reconstruction using an fft-based phase vocoder and an extra envelope.