pvslock

pvslock — Frequency lock an input fsig

Description

This opcode searches for spectral peaks and then locks the frequencies around those peaks. This is similar to phase-locking in non-streaming PV processing. It can be used to improve timestretching and pitch-shifting quality in PV processing.

Syntax

fsig pvslock fsigin, klock

Performance

fsig -- output pv stream

fsigin -- input pv stream.

klock -- frequency lock, 1 -> lock, 0 -> unlock (bypass).

[Warning] 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 475. Example

fsig1	pvstanal  kspeed,1,1,1  ; pvoc analysis from table 1 (kspeed is timescale factor) 
fsigout	pvslock  fsig1, 1         ; frequency lock
aout	pvsynth fsigout              ; pvoc synthesis
        


Depending on the input, this will transform a pitched sound into an inharmonic, bell-like sound.

Credits

Author: Victor Lazzarini
November 2004

New plugin in version 5

Nivember 2004.