pvsfreeze
Prev | Orchestra Opcodes and Operators | Next

## pvsfreeze

pvsfreeze — Freeze the amplitude and frequency time functions of a pv stream according to a control-rate trigger.

## Description

This opcodes 'freezes' the evolution of pvs stream by locking into steady amplitude and/or frequency values for each bin. The freezing is controlled, independently for amplitudes and frequencies, by a control-rate trigger, which switches the freezing 'on' if equal to or above 1 and 'off' if below 1.

## Syntax

    fsig pvsfreeze fsigin, kfreeza, kfreezf

## Performance

fsig -- output pv stream

fsigin -- input pv stream.

kfreeza -- freezing switch for amplitudes. Freezing is on if above or equal to 1 and off if below 1.

kfcf -- freezing switch for frequencies. Freezing is on if above or equal to 1 and off if below 1.

| Warning
It is unsafe to use the same f-variable for both input and output of pvs opcodes. Using the same one might lead to undefined behavior on some opcodes. Use a different one on the left and right sides of the opcode.

## Examples

Example 356. Example

    asig  in                             ; input
    ktrig oscil  1.5, 0.25, 1             ; trigger
    fim   pvsanal  asig1,1024,256,1024,0  ; pvoc analysis
    fou   pvsfreeze fim, abs(ktrig), abs(ktrig)    ; regular 'freeze' of spectra
    aout	pvsynth fou               ; pvoc synthesis

In the example above the input signal will be regularly 'frozen' for a short while, as the trigger rises above 1 about every two seconds.

## Credits

Author: Victor Lazzarini;
May 2006

New plugin in version 5

May 2006.

Prev | Up | Next
pvsdiskin | Home | pvsftr