Debian Codegraph @

opcodes/vbap4.xml

raw symbols SCIP
1
2 <refentry id="vbap4">
3 <indexterm id="IndexVbap4"><primary>vbap4</primary></indexterm>
4 <refentryinfo><title>Signal Modifiers:Panning and Spatialization</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>vbap4</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>vbap4</refname>
11 <refpurpose>
12 Distributes an audio signal among 4 channels.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 Distributes an audio signal among 4 channels.
20 </para>
21 </refsect1>
22
23 <refsect1>
24 <title>Syntax</title>
25 <synopsis>ar1, ar2, ar3, ar4 <command>vbap4</command> asig, kazim [, kelev] [, kspread]</synopsis>
26 </refsect1>
27
28 <!-- <refsect1>
29 <title>Initialization</title>
30 </refsect1>-->
31
32 <refsect1>
33 <title>Performance</title>
34 <para>
35 <emphasis>asig</emphasis> -- audio signal to be panned
36 </para>
37 <para>
38 <emphasis>kazim</emphasis> -- azimuth angle of the virtual source
39 </para>
40
41 <para>
42 <emphasis>kelev</emphasis> (optional) -- elevation angle of the virtual source
43 </para>
44
45 <para>
46 <emphasis>kspread</emphasis> (optional) -- spreading of the virtual source (range 0 - 100). If value is zero, conventional amplitude panning is used. When <emphasis>kspread</emphasis> is increased, the number of loudspeakers used in panning increases. If value is 100, the sound is applied to all loudspeakers.
47 </para>
48
49 <para>
50 <emphasis>vbap4</emphasis> takes an input signal, <emphasis>asig</emphasis> and distributes it among 4 outputs, according to the controls <emphasis>kazim</emphasis> and <emphasis>kelev</emphasis>, and the configured loudspeaker placement. If <emphasis>idim</emphasis> = 2, <emphasis>kelev</emphasis> is set to zero. The distribution is performed using Vector Base Amplitude Panning (VBAP - See reference). VBAP distributes the signal using loudspeaker data configured with <emphasis>vbaplsinit</emphasis>. The signal is applied to, at most, two loudspeakers in 2-D loudspeaker configurations, and three loudspeakers in 3-D loudspeaker configurations. If the virtual source is panned outside the region spanned by loudspeakers, the nearest loudspeakers are used in panning.
51 </para>
52 <warning>
53 <para>Please note that all <emphasis>vbap</emphasis> panning opcodes require the <emphasis>vbap</emphasis> system to be initialized using <link linkend="vbaplsinit"><citetitle>vbaplsinit</citetitle></link>.</para>
54 </warning>
55 </refsect1>
56
57 <refsect1>
58 <title>Examples</title>
59 <para>
60 See the entry for <link linkend="vbap8"><citetitle>vbap8</citetitle></link> for an example of usage of the <emphasis>vbap</emphasis> opcodes.
61 </para>
62 </refsect1>
63
64 <refsect1>
65 <title>Reference</title>
66 <para>
67 Ville Pulkki: <quote>Virtual Sound Source Positioning Using Vector Base Amplitude Panning</quote> <emphasis>Journal of the Audio Engineering Society</emphasis>, 1997 June, Vol. 45/6, p. 456.
68 </para>
69 </refsect1>
70
71 <refsect1>
72 <title>Examples</title>
73 <para>
74 Here is an example of the vbap4 opcode. It uses the file <ulink url="examples/vbap4.csd"><citetitle>vbap4.csd</citetitle></ulink>.
75 <example>
76 <title>Example of the vbap4 opcode.</title>
77 <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>
78 <xi:include href="examples-xml/vbap4.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
79 </example>
80 Its output should include lines like these:
81 <screen>
82 spread of source = 0
83 spread of source = 8
84 spread of source = 17
85 spread of source = 25
86 spread of source = 33
87 spread of source = 42
88 spread of source = 50
89 spread of source = 58
90 spread of source = 67
91 spread of source = 75
92 spread of source = 83
93 spread of source = 92
94 spread of source = 100
95 </screen>
96 </para>
97 </refsect1>
98
99 <refsect1>
100 <title>See also</title>
101 <para><link linkend="SigmodPanspatl"><citetitle>Panning and Spatialization: Vector Base Amplitude Panning</citetitle></link></para>
102 </refsect1>
103
104 <refsect1>
105 <title>Credits</title>
106 <para>
107 <simplelist>
108 <member>Author: Ville Pulkki</member>
109 <member>Sibelius Academy Computer Music Studio</member>
110 <member>Laboratory of Acoustics and Audio Signal Processing</member>
111 <member>Helsinki University of Technology</member>
112 <member>Helsinki, Finland</member>
113 <member>May 2000</member>
114 </simplelist>
115 </para>
116
117 <para>New in Csound Version 4.06. Input parameters accept k-rate since Csund 5.09.</para>
118 </refsect1>
119 </refentry>