Debian Codegraph @

opcodes/pvstrace.xml

raw symbols SCIP
1
2 <refentry id="pvstrace">
3 <indexterm id="IndexPvstrace"><primary>pvstrace</primary></indexterm>
4 <refentryinfo><title>Spectral Processing:Streaming</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>pvstrace</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>pvstrace</refname>
11 <refpurpose>
12 Retain only the N loudest bins.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 Process a PV stream by retaining only the N bins with the
20 highest amplitude, zeroing the others.
21 </para>
22 </refsect1>
23
24 <refsect1>
25 <title>Syntax</title>
26 <synopsis>fsig <command>pvstrace</command> fsigin, kn </synopsis>
27 <synopsis>fsig, kBins[] <command>pvstrace</command> fsigin, kn[,
28 isort, imin, imax] </synopsis>
29 </refsect1>
30
31
32 <refsect1>
33 <title>Initialization </title>
34 <para>
35 <emphasis>isort</emphasis> -- if nonzero, sort the reported bins in kBins by
36 decreasing amplitude, optional (default 0, off).
37 </para>
38 <para>
39 <emphasis>imin, imax</emphasis> -- if nonzero, search between a
40 min and max value (default 0, no min or max).
41 </para>
42 </refsect1>
43
44
45
46 <refsect1>
47 <title>Performance</title>
48 <para>
49 <emphasis>fsig</emphasis> -- output pv stream
50 </para>
51
52 <para>
53 <emphasis>kBins[]</emphasis> -- an array of size fftsize/2 + 1
54 values, whose first N values report the kn bin numbers retained
55 by pvstrace. Other locations are set to 0. It can be sorted or unsorted.
56 </para>
57
58 <para>
59 <emphasis>fsigin</emphasis> -- input pv stream
60 </para>
61
62 <para>
63 <emphasis>kn</emphasis> -- number of bins to be retained
64 </para>
65 <warning>
66 <para>
67 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.
68 </para>
69 </warning>
70 </refsect1>
71
72 <refsect1>
73 <title>Examples</title>
74 <para>
75 Here is an example of the use of the <emphasis>pvstrace</emphasis> opcode. It uses the file <ulink url="examples/pvstrace.csd"><citetitle>pvstrace.csd</citetitle></ulink>.
76 <example>
77 <title>Example of the <emphasis>pvstrace</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/pvstrace.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>2017 </member>
95 </simplelist>
96 </para>
97
98 <para>New plugin in version 6.09</para>
99 </refsect1>
100 </refentry>