Debian Codegraph @

opcodes/partials.xml

raw symbols SCIP
1
2 <refentry id="partials">
3 <indexterm id="Indexpartials"><primary>partials</primary></indexterm>
4 <refentryinfo><title>Spectral Processing:Streaming</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>partials</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>partials</refname>
13 <refpurpose>
14 Partial track spectral analysis.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 The partials opcode takes two input PV streaming signals containg AMP_FREQ and AMP_PHASE signals (as generated
22 for instance by pvsifd or in the first case, by pvsanal) and performs partial track analysis,
23 as described in Lazzarini et al, "Time-stretching using the Instantaneous Frequency Distribution and Partial
24 Tracking", Proc.of ICMC05, Barcelona. It generates a TRACKS PV streaming signal, containing amplitude, frequency,
25 phase and track ID for each output track. This type of signal will contain a variable number of output tracks,
26 up to the total number of analysis bins contained in the inputs (fftsize/2 + 1 bins). The second input (AMP_PHASE)
27 is optional, as it can take the same signal as the first input. In this case, however, all phase information will
28 be NULL and resynthesis using phase information cannot be performed.
29 </para>
30 </refsect1>
31
32 <refsect1>
33 <title>Syntax</title>
34 <synopsis>ftrks <command>partials</command> ffr, fphs, kthresh, kminpts, kmaxgap, imaxtracks</synopsis>
35 </refsect1>
36
37 <refsect1>
38 <title>Performance</title>
39 <para>
40 <emphasis>ftrks</emphasis> -- output pv stream in TRACKS format
41 </para>
42
43 <para>
44 <emphasis>ffr</emphasis> -- input pv stream in AMP_FREQ format
45 </para>
46
47 <para>
48 <emphasis>fphs</emphasis> -- input pv stream in AMP_PHASE format
49 </para>
50
51 <para>
52 <emphasis>kthresh</emphasis> -- analysis threshold factor,
53 defined between -1 and 1. If non-negative,
54 the analysis threshold is taken to be relative to the maximum magnitude in each
55 analysis frame (kthresh * max_magnitude). If negative, the absolute threshold value is
56 relative to 0dbfs (kthresh * 0dbfs). Tracks below this threshold will be discarded.
57 </para>
58
59 <para>
60 <emphasis>kminpoints</emphasis> -- minimum number of time points for a detected peak to make a track (1
61 is the minimum). Since this opcode works with streaming signals, larger numbers will increase the delay between
62 input and output, as we have to wait for the required minimum number of points.
63 </para>
64
65 <para>
66 <emphasis>kmaxgap</emphasis> -- maximum gap between time-points for track continuation (> 0). Tracks that have
67 no continuation after kmaxgap will be discarded.
68 </para>
69
70 <para>
71 <emphasis>imaxtracks</emphasis> -- maximum number of analysis tracks (number of bins >= imaxtracks)
72 </para>
73
74 <para>
75
76 </para>
77
78 </refsect1>
79
80 <refsect1>
81 <title>Example</title>
82 <para>
83 Here is an example of the partials opcodes. It uses the file <ulink url="examples/partials.csd"><citetitle>partials.csd</citetitle></ulink>.
84 <example>
85 <title>Example of the partials opcodes.</title>
86 <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>
87 <xi:include href="examples-xml/partials.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
88 </example>
89 </para>
90 <para>The example above shows partial tracking of an ifd-analysis signal and cubic-phase additive resynthesis with pitch shifting.</para>
91 </refsect1>
92
93 <refsect1>
94 <title>See also</title>
95 <para><link linkend="SpectralRealTime"><citetitle>Tools for Real-time Spectral Processing (pvs opcodes)</citetitle></link></para>
96 </refsect1>
97
98 <refsect1>
99 <title>Credits</title>
100 <para>
101 <simplelist>
102 <member>Author: &namevictor;</member>
103 <member>June 2005 </member>
104 </simplelist>
105 </para>
106
107 <para>New plugin in version 5</para>
108 <para>November 2004.</para>
109 </refsect1>
110 </refentry>