pvsfreezeSpectral Processing:Streamingpvsfreezepvsfreeze
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.
Syntaxfsig pvsfreeze fsigin, kfreeza, kfreezfPerformancefsig -- 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.
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.
ExamplesExample
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.
Here is an example of the use of the pvsfreeze opcode. It uses the file pvsfreeze.csd.
Example of the pvsfreeze opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See alsoTools for Real-time Spectral Processing (pvs opcodes)CreditsAuthor: &namevictor;May 2006 New plugin in version 5May 2006.