Debian Codegraph @

opcodes/pvsfreeze.xml

raw symbols SCIP
1
2 <refentry id="pvsfreeze">
3 <indexterm id="Indexpvsfreeze"><primary>pvsfreeze</primary></indexterm>
4
5 <refentryinfo><title>Spectral Processing:Streaming</title></refentryinfo>
6 <refmeta>
7 <refentrytitle>pvsfreeze</refentrytitle>
8 </refmeta>
9
10 <refnamediv>
11 <refname>pvsfreeze</refname>
12 <refpurpose>
13 Freeze the amplitude and frequency time functions of a pv stream according to a control-rate
14 trigger.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 This opcodes 'freezes' the evolution of pvs stream by locking into steady amplitude and/or
22 frequency values for each bin. The freezing is controlled, independently for amplitudes and
23 frequencies, by a control-rate trigger, which switches the freezing 'on' if equal to or above
24 1 and 'off' if below 1.
25 </para>
26 </refsect1>
27
28 <refsect1>
29 <title>Syntax</title>
30 <synopsis>fsig <command>pvsfreeze</command> fsigin, kfreeza, kfreezf</synopsis>
31 </refsect1>
32
33 <refsect1>
34 <title>Performance</title>
35 <para>
36 <emphasis>fsig</emphasis> -- output pv stream
37 </para>
38
39 <para>
40 <emphasis>fsigin</emphasis> -- input pv stream.
41 </para>
42
43 <para>
44 <emphasis>kfreeza</emphasis> -- freezing switch for amplitudes. Freezing is on if above or equal to 1 and off if below 1.
45 </para>
46
47 <para>
48 <emphasis>kfcf</emphasis> -- freezing switch for frequencies. Freezing is on if above or equal to 1 and off if below 1.
49 </para>
50
51 <warning>
52 <para>
53 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 </para>
55 </warning>
56 </refsect1>
57
58 <refsect1>
59 <title>Examples</title>
60 <para>
61 <example>
62 <title>Example</title>
63 <programlisting>
64 asig <emphasis role="opc">in</emphasis> <emphasis role="comment">; input</emphasis>
65 ktrig <emphasis role="opc">oscil</emphasis> 1.5, 0.25, 1 <emphasis role="comment">; trigger</emphasis>
66 fim <emphasis role="opc">pvsanal</emphasis> asig1, 1024, 256, 1024, 0 <emphasis role="comment">; pvoc analysis </emphasis>
67 fou <emphasis role="opc">pvsfreeze</emphasis> fim, <emphasis role="opc">abs</emphasis>(ktrig), <emphasis role="opc">abs</emphasis>(ktrig) <emphasis role="comment">; regular 'freeze' of spectra</emphasis>
68 aout <emphasis role="opc">pvsynth</emphasis> fou <emphasis role="comment">; pvoc synthesis</emphasis></programlisting>
69 </example>
70 </para>
71 <para>
72 In the example above the input signal will be regularly 'frozen' for a short while,
73 as the trigger rises above 1 about every two seconds.</para>
74 <para>
75 Here is an example of the use of the <emphasis>pvsfreeze</emphasis> opcode. It uses the file <ulink url="examples/pvsfreeze.csd"><citetitle>pvsfreeze.csd</citetitle></ulink>.
76 <example>
77 <title>Example of the <emphasis>pvsfreeze</emphasis> opcode.</title>
78 <para>See the sections <link linkend="UsingRealTime"><citetitle>Real-time Audio</citetitle></link> and <link linkend="CommandFlags"><citetitle>Command Line Flags</citetitle></link> for more information on using command line flags.</para>
79 <xi:include href="examples-xml/pvsfreeze.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
80 </example>
81 </para>
82 </refsect1>
83
84 <refsect1>
85 <title>See also</title>
86 <para><link linkend="SpectralRealTime"><citetitle>Tools for Real-time Spectral Processing (pvs opcodes)</citetitle></link></para>
87 </refsect1>
88
89 <refsect1>
90 <title>Credits</title>
91 <para>
92 <simplelist>
93 <member>Author: &namevictor;</member>
94 <member>May 2006 </member>
95 </simplelist>
96 </para>
97 <para>New plugin in version 5</para>
98 <para>May 2006.</para>
99 </refsect1>
100 </refentry>