Debian Codegraph @

opcodes/trcross.xml

raw symbols SCIP
1
2 <refentry id="trcross">
3 <indexterm id="Indextrcross"><primary>trcross</primary></indexterm>
4
5 <refentryinfo><title>Spectral Processing:Streaming</title></refentryinfo>
6 <refmeta>
7 <refentrytitle>trcross</refentrytitle>
8 </refmeta>
9
10 <refnamediv>
11 <refname>trcross</refname>
12 <refpurpose>
13 Streaming partial track cross-synthesis.
14 </refpurpose>
15 </refnamediv>
16
17 <refsect1>
18 <title>Description</title>
19 <para>
20 The <emphasis>trcross</emphasis> opcode takes two inputs containg TRACKS pv streaming signals (as generated,
21 for instance by <emphasis>partials</emphasis>) and cross-synthesises them into a single TRACKS stream. Two
22 different modes of operation are used: mode 0, cross-synthesis by multiplication of
23 the amplitudes of the two inputs and mode 1, cross-synthesis by the substititution of
24 the amplitudes of input 1 by the input 2. Frequencies and phases of input 1 are preserved
25 in the output. The cross-synthesis is done by matching tracks between the two inputs using
26 a 'search interval'. The matching algorithm will look for tracks in the second input that
27 are within the search interval around each track in the first input. This interval can be changed
28 at the control rate. Wider search intervals will find more matches.
29 </para>
30 </refsect1>
31
32 <refsect1>
33 <title>Syntax</title>
34 <synopsis>fsig <command>trcross</command> fin1, fin2, ksearch, kdepth [, kmode] </synopsis>
35 </refsect1>
36
37 <refsect1>
38 <title>Performance</title>
39 <para>
40 <emphasis>fsig</emphasis> -- output pv stream in TRACKS format
41 </para>
42
43 <para>
44 <emphasis>fin1</emphasis> -- first input pv stream in TRACKS format.
45 </para>
46
47 <para>
48 <emphasis>fin2</emphasis> -- second input pv stream in TRACKS format
49 </para>
50
51 <para>
52 <emphasis>ksearch</emphasis> -- search interval ratio, defining a 'search area'
53 around each track of 1st input for matching purposes.
54 </para>
55
56 <para>
57 <emphasis>kdepth</emphasis> -- depth of effect (0-1).
58 </para>
59
60 <para>
61 <emphasis>kmode</emphasis> -- mode of cross-synthesis. 0, multiplication
62 of amplitudes (filtering), 1, subsitution of amplitudes of input 1 by
63 input 2 (akin to vocoding). Defaults to 0.
64 </para>
65 </refsect1>
66
67 <refsect1>
68 <title>Examples</title>
69 <para>
70 Here is an example of the trcross opcode. It uses the file <ulink url="examples/trcross.csd"><citetitle>trcross.csd</citetitle></ulink>.
71 <example>
72 <title>Example of the trcross opcode.</title>
73 <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>
74 <xi:include href="examples-xml/trcross.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
75 </example>
76 </para>
77 <para>
78 The example above shows partial tracking of two ifd-analysis signals, cross-synthesis,
79 followed by the remix of the two parts of the spectrum and resynthesis.
80 </para>
81 </refsect1>
82
83 <refsect1>
84 <title>See also</title>
85 <para><link linkend="SpectralRealTime"><citetitle>Tools for Real-time Spectral Processing (pvs opcodes)</citetitle></link></para>
86 </refsect1>
87
88 <refsect1>
89 <title>Credits</title>
90 <para>
91 <simplelist>
92 <member>Author: &namevictor;</member>
93 <member>February 2006 </member>
94 </simplelist>
95 </para>
96 <para>New in Csound 5.01</para>
97 </refsect1>
98 </refentry>