Debian Codegraph @

opcodes/pan2.xml

raw symbols SCIP
1
2 <refentry id="pan2">
3 <indexterm id="IndexPan2"><primary>pan2</primary></indexterm>
4 <refentryinfo><title>Signal Modifiers:Panning and Spatialization</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>pan2</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>pan2</refname>
13 <refpurpose>
14 Distribute an audio signal across two channels.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 Distribute an audio signal across two channels with a choice of methods.
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis>a1, a2 <command>pan2</command> asig, xp [, imode]</synopsis>
28 </refsect1>
29
30 <refsect1>
31 <title>Initialization</title>
32 <para>
33 <emphasis>imode</emphasis> (optional) -- mode of the stereo
34 positioning algorithm. 0 signifies equal power (harmonic)
35 panning, 1 means the square root method, 2 means simple linear
36 and 3 means an alternative equal-power pan (based on an UDO). The default value is 0.
37 </para>
38 </refsect1>
39
40 <refsect1>
41 <title>Performance</title>
42 <para>
43 <emphasis>pan2</emphasis> takes an input
44 signal <emphasis>asig</emphasis> and distributes it across two
45 outputs (essentially stereo speakers) according to the
46 control <emphasis>xp</emphasis> which can be k- or a-rate. A
47 zero value for <emphasis>xp</emphasis> indicates hard left, and
48 a 1 is hard right.
49 </para>
50
51 </refsect1>
52
53
54 <refsect1>
55 <title>Example</title>
56 <para>
57 Here is an example of the pan2 opcodes. It uses the file <ulink url="examples/pan2.csd"><citetitle>pan2.csd</citetitle></ulink>.
58 <example>
59 <title>Example of the pan2 opcodes.</title>
60 <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>
61 <xi:include href="examples-xml/pan2.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
62 </example>
63 </para>
64 </refsect1>
65
66 <refsect1>
67 <title>See also</title>
68 <para><link linkend="SigmodPanspatl"><citetitle>Panning and Spatialization: Amplitude spatialization</citetitle></link></para>
69 </refsect1>
70
71 <refsect1>
72 <title>Credits</title>
73 <para>
74 <simplelist>
75 <member>Author: &namejohn;</member>
76 <member>University of Bath, Codemist Ltd.</member>
77 <member>Bath, UK</member>
78 <member>September 2007</member>
79 </simplelist>
80 <para>New in version 5.07</para>
81 </para>
82 </refsect1>
83 </refentry>