pvs2tab — Copies spectral data to t-variables.


Copies a pvs frame to a t-variable. Currently only AMP+FREQ and AMP+PHASE formats allowed. This opcode requires the t-type to be defined, which means it only works in the new bison/flex-based parser.


kframe pvs2tab tvar, fsig


kframe -- current copied frame number. It can be used to detect when a new frame has been copied.

tvar -- t-variable containing the output. It is produced at every k-period, but may not contain a new frame, pvs frames are produced at their own frame rate that is independent of kr. Generally, this vector needs to be big enough to contain the frame samples, i.e. N+2 (N is the dft size). If smaller, only a portion of the frame will be copied; if bigger, unused points will exist at higher indexes.

fsig -- input fsig to be copied.

iwinsize -- size of the analysis window, defaults to isize.


Example 630. Example

t1 init 1026
a1 inch 1
fsig1   pvsanal a1, 1024,256,1024, 1
kframe  pvs2tabt1, fsig1


Author: Victor Lazzarini
October 2011

New plugin in version 5

October 2011.