Debian Codegraph @

opcodes/pvstencil.xml

raw symbols SCIP
1
2 <refentry id="pvstencil">
3 <indexterm id="IndexPvstencil"><primary>pvstencil</primary></indexterm>
4 <refentryinfo><title>Spectral Processing:Streaming</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>pvstencil</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>pvstencil</refname>
11 <refpurpose>
12 Transforms a pvoc stream according to a masking function table.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 Transforms a pvoc stream according to a masking function table;
20 if the pvoc stream amplitude falls below the value of the function
21 for a specific pvoc channel, it applies a gain to that channel.
22 </para>
23 <para>
24 The pvoc stream amplitudes are compared to a masking table, if
25 the fall below the table values, they are scaled by <emphasis>kgain</emphasis>. Prior
26 to the operation, table values are scaled by <emphasis>klevel</emphasis>, which can be
27 used as masking depth control.
28 </para>
29 <para>
30 Tables have to be at least fftsize/2 in size; for most GENS it is
31 important to use an extended-guard point (size power-of-two plus
32 one), however this is not necessary with GEN43.
33 </para>
34 <para>
35 One of the typical uses of <emphasis>pvstencil</emphasis> would be in noise
36 reduction. A noise print can be analysed with <emphasis>pvanal</emphasis> into a PVOC-EX
37 file and loaded in a table with <emphasis>GEN43</emphasis>. This then can be used as
38 the masking table for <emphasis>pvstencil</emphasis> and the amount of reduction would
39 be controlled by <emphasis>kgain</emphasis>. Skipping post-normalisation will keep the
40 original noise print average amplitudes. This would provide a good
41 starting point for a successful noise reduction (so that <emphasis>klevel</emphasis>
42 can be generally set to close to 1).
43 </para>
44 <para>
45 Other possible transformation effects are possible, such as
46 filtering and `inverse-masking'.
47 </para>
48 </refsect1>
49
50 <refsect1>
51 <title>Syntax</title>
52 <synopsis>fsig <command>pvstencil</command> fsigin, kgain, klevel, iftable</synopsis>
53 </refsect1>
54
55 <refsect1>
56 <title>Performance</title>
57 <para>
58 <emphasis>fsig</emphasis> -- output pv stream
59 </para>
60
61 <para>
62 <emphasis>fsigin</emphasis> -- input pv stream.
63 </para>
64
65 <para>
66 <emphasis>kgain</emphasis> -- `stencil' gain.
67 </para>
68
69 <para>
70 <emphasis>klevel</emphasis> -- masking function level (scales
71 the ftable prior to `stenciling') .
72 </para>
73
74 <para>
75 <emphasis>iftable</emphasis> -- masking function table.
76 </para>
77
78 <warning>
79 <para>
80 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.
81 </para>
82 </warning>
83
84 </refsect1>
85
86 <refsect1>
87 <title>Examples</title>
88 <para>
89 Here is an example of the pvstencil opcode. It uses the file <ulink url="examples/pvstencil.csd"><citetitle>pvstencil.csd</citetitle></ulink>.
90 <example>
91 <title>Example of the pvstencil opcode.</title>
92 <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>
93 <xi:include href="examples-xml/pvstencil.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
94 </example>
95 For another example of pvstencil, see <link linkend="GEN43"><citetitle>GEN43</citetitle></link>
96 </para>
97 </refsect1>
98
99 <refsect1>
100 <title>See also</title>
101 <para><link linkend="SpectralRealTime"><citetitle>Tools for Real-time Spectral Processing (pvs opcodes)</citetitle></link></para>
102 <para>
103 <link linkend="GEN43"><citetitle>GEN43</citetitle></link>
104 </para>
105 </refsect1>
106
107 <refsect1>
108 <title>Credits</title>
109 <para>
110 <simplelist>
111 <member>Author: &namevictor;</member>
112 <member>November 2004 </member>
113 </simplelist>
114 </para>
115
116 <para>New plugin in version 5</para>
117 <para>November 2004.</para>
118 </refsect1>
119 </refentry>