2
<refentry id="pvslock">
3
<indexterm id="IndexPvslock"><primary>pvslock</primary></indexterm>
4
<refentryinfo><title>Spectral Processing:Streaming</title></refentryinfo>
6
<refentrytitle>pvslock</refentrytitle>
12
<refname>pvslock</refname>
14
Frequency lock an input fsig
19
<title>Description</title>
21
This opcode searches for spectral peaks and then locks the frequencies around those peaks. This is similar to
22
phase-locking in non-streaming PV processing. It can be used to improve timestretching and pitch-shifting quality in
29
<synopsis>fsig <command>pvslock</command> fsigin, klock</synopsis>
33
<title>Performance</title>
35
<emphasis>fsig</emphasis> -- output pv stream
39
<emphasis>fsigin</emphasis> -- input pv stream.
43
<emphasis>klock</emphasis> -- frequency lock, 1 -> lock, 0 -> unlock (bypass).
47
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.
54
<title>Examples</title>
57
<title>Example</title>
59
fsig1 pvstanal kspeed,1,1,1 ; pvoc analysis from table 1 (kspeed is timescale factor)
60
fsigout pvslock fsig1, 1 ; frequency lock
61
aout pvsynth fsigout ; pvoc synthesis
68
<para>Depending on the input, this will transform a pitched sound into an inharmonic,
69
bell-like sound.</para>
74
<title>Credits</title>
77
<member>Author: &namevictor;</member>
78
<member>November 2004 </member>
82
<para>New plugin in version 5</para>
83
<para>Nivember 2004.</para>