vbaplsinitSignal Modifiers:Panning and Spatializationvbaplsinitvbaplsinit
Configures VBAP output according to loudspeaker parameters.
Description
Configures VBAP output according to loudspeaker parameters.
Syntaxvbaplsinit idim, ilsnum [, idir1] [, idir2] [...] [, idir32]vbaplsinit idim, ilsnum, ilsarrayInitializationidim -- dimensionality of loudspeaker
array. Either 2 or 3. If the dimension has a fractional part
then that is used as the index of the layout created (used in
vbap, vbapz and
vbapg only). The factional part should be
between .00 and .99.
ilsnum -- number of loudspeakers. In two
dimensions, the number can vary from 2 to 64. In three
dimensions, the number can vary from 3 and 64.
idir1, idir2, ..., idir32 -- directions of
loudspeakers. Number of directions must be less than or equal to
16. In two-dimensional loudspeaker positioning,
idirn is the azimuth angle respective to
nth channel. In three-dimensional
loudspeaker positioning, fields are the azimuth and elevation
angles of each loudspeaker consequently
(azi1, ele1,
azi2, ele2, etc.).
ilsarray -- a one dimesional array of the
data as described above.
In 2 dimensions the angle between two adjacent speakers
must be less than 179 degrees (170 degrees in earlier versions).
This is a restriction of the algorithm.Performance
VBAP distributes the signal using loudspeaker data configured with vbaplsinit. 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.
Examples
Here is an example of the vbaplsinit opcode. It uses the file vbaplsinit.csd.
Example of the vbaplsinit opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.
See the other entries of the vbap opcodes for different examples.
Reference
Ville Pulkki: Virtual Sound Source Positioning Using Vector Base Amplitude PanningJournal of the Audio Engineering Society, 1997 June, Vol. 45/6, p. 456.
See alsoPanning and Spatialization: Vector Base Amplitude PanningCreditsAuthor: Ville PulkkiSibelius Academy Computer Music StudioLaboratory of Acoustics and Audio Signal ProcessingHelsinki University of TechnologyHelsinki, FinlandMay 2000New in Csound Version 4.07Multiple layouts new ib version 5.17.14