Debian Codegraph @

opcodes/pvs2tab.xml

raw symbols SCIP
1
2 <refentry id="pvs2tab">
3 <indexterm id="IndexPvs2tab"><primary>pvs2tab</primary></indexterm>
4
5 <refentryinfo><title>Spectral Processing:Streaming</title></refentryinfo>
6 <refmeta>
7 <refentrytitle>pvs2tab</refentrytitle>
8 </refmeta>
9
10 <refnamediv>
11 <refname>pvs2tab</refname>
12 <refpurpose>
13 Copies spectral data to k-rate arrays (or t-variables). Also known as pvs2array.
14 </refpurpose>
15 </refnamediv>
16
17 <refsect1>
18 <title>Description</title>
19 <para>
20 Copies a pvs frame to a t-variable. Currently only AMP+FREQ and AMP+PHASE formats allowed. Since t-vars are an earlier version of k-rate arrays, the opcode also works with these. The opcode pvs2array is an alias of this one.
21 </para>
22 </refsect1>
23
24 <refsect1>
25 <title>Syntax</title>
26 <synopsis>kframe <command>pvs2tab</command> tvar|kvar[], fsig</synopsis>
27 <synopsis>kframe <command>pvs2tab</command> kmags[], kfreqs[], fsig</synopsis>
28 </refsect1>
29
30 <refsect1>
31 <title>Performance</title>
32 <para>
33 <emphasis>kframe</emphasis> -- current copied frame number. It can be used to detect when a new frame has been copied.
34 </para>
35
36 <para>
37 <emphasis>tvar|kvar[]</emphasis> -- t-variable or k-rate array containing the output. It is produced at every k-period, but may not contain a new frame, pvs frames are produced at their own frame rate that is independent of kr. Generally, this vector needs to be big enough to contain the frame samples, i.e. N+2 (N is the dft size). If smaller, only a portion of the frame will be copied; if bigger, unused points will exist at higher indexes.
38 </para>
39
40 <para>
41 <emphasis>kmags[], kfreqs[]</emphasis> k-rate arrays containing magnitude and frequency values. These arrays need to be generally be of size N/2 + 1, where N is dft frame size. If smaller, only a portion of the pvs frame will be copied; if bigger, unused points will exist at higher indexes.
42 </para>
43
44 <para>
45 <emphasis>fsig</emphasis> -- input fsig to be copied.
46 </para>
47
48 </refsect1>
49
50 <refsect1>
51 <title>Examples</title>
52 <para>
53 <example>
54 <title>Example</title>
55 <programlisting>
56 karr[] init 1026
57 a1 inch 1
58 fsig1 pvsanal a1, 1024,256,1024, 1
59 kframe <emphasis role="opc">pvs2tab</emphasis> karr, fsig1</programlisting>
60 </example>
61 </para>
62 </refsect1>
63
64 <refsect1>
65 <title>See also</title>
66 <para><link linkend="SpectralRealTime"><citetitle>Tools for Real-time Spectral Processing (pvs opcodes)</citetitle></link></para>
67 <para><link linkend="arraysfft"><citetitle></citetitle>Array-based spectral opcodes</link></para>
68 </refsect1>
69
70 <refsect1>
71 <title>Credits</title>
72 <para>
73 <simplelist>
74 <member>Author: &namevictor;</member>
75 <member>October 2011 </member>
76 </simplelist>
77 </para>
78
79 <para>New plugin in version 5</para>
80 <para>October 2011.</para>
81 </refsect1>
82 </refentry>