Debian Codegraph @

opcodes/trshift.xml

raw symbols SCIP
1
2 <refentry id="trshift">
3 <indexterm id="Indextrshift"><primary>trshift</primary></indexterm>
4
5 <refentryinfo><title>Spectral Processing:Streaming</title></refentryinfo>
6 <refmeta>
7 <refentrytitle>trshift</refentrytitle>
8 </refmeta>
9
10 <refnamediv>
11 <refname>trshift</refname>
12 <refpurpose>
13 Streaming partial track frequency scaling.
14 </refpurpose>
15 </refnamediv>
16
17 <refsect1>
18 <title>Description</title>
19 <para>
20 The <emphasis>trshift</emphasis> opcode takes an input containg a TRACKS pv streaming signal (as generated,
21 for instance by <emphasis>partials</emphasis>) and shifts all frequencies by a k-rate frequency. It can also, optionally,
22 scale the gain of the signal by a k-rate amount (default 1). The result is frequency shifting of
23 the input tracks.
24 </para>
25 </refsect1>
26
27 <refsect1>
28 <title>Syntax</title>
29 <synopsis>fsig <command>trshift</command> fin, kpshift[, kgain]</synopsis>
30 </refsect1>
31
32 <refsect1>
33 <title>Performance</title>
34 <para>
35 <emphasis>fsig</emphasis> -- output pv stream in TRACKS format
36 </para>
37
38 <para>
39 <emphasis>fin</emphasis> -- input pv stream in TRACKS format
40 </para>
41
42 <para>
43 <emphasis>kshift</emphasis> -- frequency shift in Hz
44 </para>
45
46 <para>
47 <emphasis>kgain</emphasis> -- amplitude scaling (default 1)
48 </para>
49 </refsect1>
50
51 <refsect1>
52 <title>Examples</title>
53 <para>
54 Here is an example of the trshift opcode. It uses the file <ulink url="examples/trshift.csd"><citetitle>trshift.csd</citetitle></ulink>.
55 <example>
56 <title>Example of the trshift opcode.</title>
57 <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>
58 <xi:include href="examples-xml/trshift.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
59 </example>
60 </para>
61 <para>
62 The example above shows partial tracking of an ifd-analysis signal and
63 linear additive resynthesis with frequency shifting.
64 </para>
65 </refsect1>
66
67 <refsect1>
68 <title>See also</title>
69 <para><link linkend="SpectralRealTime"><citetitle>Tools for Real-time Spectral Processing (pvs opcodes)</citetitle></link></para>
70 </refsect1>
71
72 <refsect1>
73 <title>Credits</title>
74 <para>
75 <simplelist>
76 <member>Author: &namevictor;</member>
77 <member>February 2006 </member>
78 </simplelist>
79 </para>
80 <para>New in Csound 5.01</para>
81 </refsect1>
82 </refentry>