pvsftr
Prev | Orchestra Opcodes and Operators | Next

## pvsftr

pvsftr — Reads amplitude and/or frequency data from function tables.

## Description

Reads amplitude and/or frequency data from function tables.

## Syntax

    pvsftr fsrc, ifna [, ifnf]

## Initialization

ifna -- A table, at least inbins in size, that stores amplitude data. Ignored if ifna = 0

ifnf (optional) -- A table, at least inbins in size, that stores frequency data. Ignored if ifnf = 0

## Performance

fsrc -- a PVOC-EX formatted source.

Enables the contents of fsrc to be exchanged with function tables for custom processing. Except when the frame overlap equals ksmps (which will generally not be the case), the frame data is not updated each control period. The data in ifna, ifnf should only be processed when kflag is set to 1. To process only frequency data, set ifna to zero.

As the function tables are required only to store data from fsrc, there is no advantage in defining then in the score, and they should generally be created in the instrument, using ftgen.

By exporting amplitude data, say, from one fsig and importing it into another, basic cross-synthesis (as in pvscross) can be performed, with the option to modify the data beforehand using the table manipulation opodes.

Note that the format data in the source fsig is not written to the tables. This therefore offers a means of transferring amplitude and frequency data between non-identical fsigs. Used this way, these opcodes become potentially pathological, and can be relied upon to produce unexpected results. In such cases, resynthesis using pvsadsyn would almost certainly be required.

To perform a straight copy from one fsig to another one of identical format, the conventional assignment syntax can be used:

fsig1 = fsig2

It is not necessary to use function tables in this case.

## Examples

    ifn     ftgen      0,0,inbins,10,1        ; make ftable
    kflag   pvsftw     fsrc,ifn          ; export  amps to table,
    kamp    init       0
    if      kflag==0   kgoto contin   ; only proc when frame is ready
    ; kill lowest bins, for obvious effect
            tablew      kamp,1,ifn
            tablew      kamp,2,ifn
            tablew      kamp,3,ifn
            tablew      kamp,4,ifn
    ; read modified data back to fsrc
            pvsftr      fsrc,ifn
    contin:
    ; and resynth
    aout    pvsynth    fsrc

## See Also

pvsftw

## Credits

Author: Richard Dobson
August 2001

New in version 4.13

Prev | Up | Next
pvsfreeze | Home | pvsftw