Debian Codegraph @

opcodes/vbap.xml

raw symbols SCIP
1
2 <refentry id="vbap">
3 <indexterm id="IndexVbap"><primary>vbap</primary></indexterm>
4 <refentryinfo><title>Signal Modifiers:Panning and Spatialization</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>vbap</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>vbap</refname>
11 <refpurpose>
12 Distributes an audio signal among many channels.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 Distributes an audio signal amongmany channels, up to 64 in the
20 first form, arbitrary in the second.
21 </para>
22 </refsect1>
23
24 <refsect1>
25 <title>Syntax</title>
26 <synopsis>ar1[, ar2...] <command>vbap</command> asig, kazim [,
27 kelev] [, kspread] [, ilayout]</synopsis>
28 <synopsis>array[] <command>vbap</command> asig, kazim [,
29 kelev] [, kspread] [, ilayout]</synopsis>
30 </refsect1>
31
32 <refsect1>
33 <title>Initialization</title>
34 <para>
35 <emphasis>ilayout</emphasis> -- index of the speaker layout in
36 the range 0-99, corresponding to a call to
37 <emphasis>vbaplsinit</emphasis>.
38 </para>
39 </refsect1>
40
41 <refsect1>
42 <title>Performance</title>
43 <para>
44 <emphasis>asig</emphasis> -- audio signal to be panned
45 </para>
46 <para>
47 <emphasis>kazim</emphasis> -- azimuth angle of the virtual source
48 </para>
49
50 <para>
51 <emphasis>kelev</emphasis> (optional) -- elevation angle of the virtual source
52 </para>
53
54 <para>
55 <emphasis>kspread</emphasis> (optional) -- spreading of the
56 virtual source (range 0 - 100). If value is zero, conventional
57 amplitude panning is used. When <emphasis>kspread</emphasis> is
58 increased, the number of loudspeakers used in panning
59 increases. If value is 100, the sound is applied to all
60 loudspeakers.
61 </para>
62
63 <para>
64 <emphasis>vbap</emphasis> takes an input signal,
65 <emphasis>asig</emphasis> and distributes it among the outputs,
66 according to the controls <emphasis>kazim</emphasis> and
67 <emphasis>kelev</emphasis>, and the configured loudspeaker
68 placement. If <emphasis>idim</emphasis> = 2,
69 <emphasis>kelev</emphasis> is set to zero. The distribution is
70 performed using Vector Base Amplitude Panning (VBAP - See
71 reference). VBAP distributes the signal using loudspeaker data
72 configured with <emphasis>vbaplsinit</emphasis>. The signal is
73 applied to, at most, two loudspeakers in 2-D loudspeaker
74 configurations, and three loudspeakers in 3-D loudspeaker
75 configurations. If the virtual source is panned outside the
76 region spanned by loudspeakers, the nearest loudspeakers are
77 used in panning.
78 </para>
79 <warning>
80 <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>
81 </warning>
82 </refsect1>
83
84 <refsect1>
85 <title>Examples</title>
86 <para>
87 See the entry for <link linkend="vbap8"><citetitle>vbap8</citetitle></link> for an example of usage of the <emphasis>vbap</emphasis> opcodes.
88 </para>
89 </refsect1>
90
91 <refsect1>
92 <title>Reference</title>
93 <para>
94 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.
95 </para>
96 </refsect1>
97
98 <refsect1>
99 <title>Examples</title>
100 <para>
101 Here is an example of the vbap opcode. It uses the file <ulink url="examples/vbap.csd"><citetitle>vbap.csd</citetitle></ulink>.
102 <example>
103 <title>Example of the vbap opcode.</title>
104 <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>
105 <xi:include href="examples-xml/vbap.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
106 </example>
107 Its output should include lines like these:
108 <screen>
109 spread of source = 0
110 spread of source = 8
111 spread of source = 17
112 spread of source = 25
113 spread of source = 33
114 spread of source = 42
115 spread of source = 50
116 spread of source = 58
117 spread of source = 67
118 spread of source = 75
119 spread of source = 83
120 spread of source = 92
121 spread of source = 100
122 </screen>
123 </para>
124 </refsect1>
125
126 <refsect1>
127 <title>See also</title>
128 <para><link linkend="SigmodPanspatl"><citetitle>Panning and Spatialization: Vector Base Amplitude Panning</citetitle></link></para>
129 </refsect1>
130
131 <refsect1>
132 <title>Credits</title>
133 <para>
134 <simplelist>
135 <member>Author: Ville Pulkki</member>
136 <member>Sibelius Academy Computer Music Studio</member>
137 <member>Laboratory of Acoustics and Audio Signal Processing</member>
138 <member>Helsinki University of Technology</member>
139 <member>Helsinki, Finland</member>
140 <member>May 2000</member>
141 <member>Author: &namejohn;</member>
142 <member>July 2012, Sept 2013</member>
143 </simplelist>
144 </para>
145
146 <para>New in Csound Version 5.17.13. </para>
147 <para>Array version new in Csound Version 6.01. </para>
148 </refsect1>
149 </refentry>