Debian Codegraph @

opcodes/sinsyn.xml

raw symbols SCIP
1
2 <refentry id="sinsyn">
3 <indexterm id="Indexsinsyn"><primary>sinsyn</primary></indexterm>
4 <refentryinfo><title>Spectral Processing:Streaming</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>sinsyn</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>sinsyn</refname>
11 <refpurpose>
12 Streaming partial track additive synthesis with cubic phase interpolation
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 The <emphasis>sinsyn</emphasis> opcode takes an input containg a TRACKS pv streaming signal (as generated,
20 for instance by the <emphasis>partials</emphasis> opcode). It resynthesises the signal using linear amplitude and cubic phase
21 interpolation to drive a bank of interpolating oscillators with amplitude scaling control. <emphasis>sinsyn</emphasis>
22 attempts to preserve the phase of the partials in the original signal and in so doing it does not allow for
23 pitch or timescale modifications of the signal.
24 </para>
25 </refsect1>
26
27 <refsect1>
28 <title>Syntax</title>
29 <synopsis>asig <command>sinsyn</command> fin, kscal, kmaxtracks, ifn</synopsis>
30 </refsect1>
31
32 <refsect1>
33 <title>Performance</title>
34 <para>
35 <emphasis>asig</emphasis> -- output audio rate signal
36 </para>
37
38 <para>
39 <emphasis>fin</emphasis> -- input pv stream in TRACKS format
40 </para>
41
42 <para>
43 <emphasis>kscal</emphasis> -- amplitude scaling
44 </para>
45
46 <para>
47 <emphasis>kmaxtracks</emphasis> -- max number of tracks in sinsynthesis. Limiting this will cause
48 a non-linear filtering effect, by discarding newer and higher-frequency tracks (tracks are ordered
49 by start time and ascending frequency, respectively)
50 </para>
51
52 <para>
53 <emphasis>ifn</emphasis> -- function table containing one cycle of a sinusoid (sine or cosine).
54 </para>
55 </refsect1>
56
57 <refsect1>
58 <title>Examples</title>
59 <para>
60 Here is an example of the sinsyn opcode. It uses the file <ulink url="examples/sinsyn.csd"><citetitle>sinsyn.csd</citetitle></ulink>.
61 <example>
62 <title>Example of the sinsyn opcode.</title>
63 <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>
64 <xi:include href="examples-xml/sinsyn.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
65 </example>
66 </para>
67 <para>The example above shows partial tracking of an ifd-analysis signal and cubic-phase additive resynthesis.</para>
68 </refsect1>
69
70 <refsect1>
71 <title>See also</title>
72 <para><link linkend="SpectralRealTime"><citetitle>Tools for Real-time Spectral Processing (pvs opcodes)</citetitle></link></para>
73 </refsect1>
74
75 <refsect1>
76 <title>Credits</title>
77 <para>
78 <simplelist>
79 <member>Author: &namevictor;</member>
80 <member>June 2005 </member>
81 </simplelist>
82 </para>
83
84 <para>New plugin in version 5</para>
85 <para>November 2004.</para>
86 </refsect1>
87 </refentry>