VBAPSpeakerArray:
Filter:
Classes (extension) | UGens > Multichannel > Panners

VBAPSpeakerArray : Object
ExtensionExtension

Vector Base Amplitude Panning Speaker Array
Source: vbap.sc

Description

VBAPSpeakerArray represents an array of speakers configured for use with VBAP. It provides functions for calculating optimised pairs and triplets based on speaker location.

VBAP was created by Ville Pulkki. For more information on VBAP see http://www.acoustics.hut.fi/research/cat/vbap/

This version of VBAP for SC was ported from the PD code by Scott Wilson, as part of the BEASTMulch project. Development was partially funded by the Arts and Humanities Research Council: http://www.ahrc.ac.uk

Class Methods

VBAPSpeakerArray.new(dim, directions)

Create a new VBAPSpeakerArray.

Arguments:

dim

Number of dimensions in the array, either 2 (ring or partial ring), or 3 (partial or full dome or sphere).

directions

An Array containing speaker locations in degrees. If dim is 2, this will be an array of azimuth angles. If dim is 3 this will be an array of arrays of [azimuth, elevation] angle pairs.

Angles are given in degrees, with azimuth +/- 180 degrees from the median plane (i.e. straight ahead), and elevation +/- 90 degrees from the horizontal plane.

The order of the speakers corresponds to the order of the outputs when using a VBAP UGen.

WARNING: Gaps of more than 180 degrees are not supported. If you pan a signal into such a gap, the behavior is undefined.

Discussion:

2D and 3D examples

Inherited class methods

Instance Methods

.dim

Returns an Integer corresponding to the receiver's number of dimensions.

.numSpeakers

Returns an Integer indicating the number of speakers in this array.

.speakers

Returns an Array containing instances of VBAPSpeaker.

.getSetsAndMatrices

Calculate the loudspeaker panning pairs (2D) or triplets (3D) and their associated forward and inverse matrices which are used by a VBAP UGen.

If you don't need to inspect this data, and just want to use the VBAP UGen, you can call -loadToBuffer.

.loadToBuffer(server)

Load the loudspeaker panning data into a buffer to be used by the VBAP UGen. Calls -getSetsAndMatrices internally.

Inherited instance methods

Undocumented instance methods

.anglesToCartesian

.any_ls_inside_triplet(a, b, c)

.calc_2D_inv_tmatrix(azi1, azi2, inv_mat, mat)

.calculate_3x3_matrixes

.choose_ls_triplets

.choose_ls_tuplets

.initFromDirections(directions)

.lines_intersect(i, j, k, l)

.sendToBuffer(server)

.sort_2D_lss

.unq_cross_prod(v1, v2)

.vec_angle(v1, v2)

.vec_length(v1)

.vec_prod(v1, v2)

.vol_p_side_lgth(i, j, k)

Examples

See VBAP for further examples.