BFDecode1:
Filter:
Classes (extension) | Libraries > JoshUGens | UGens > Multichannel > Ambisonics

BFDecode1 : BFDecoder : UGen : AbstractFunction : Object
ExtensionExtension

3D Ambisonic decoder
 

Description

Decode a two dimensional ambisonic B-format signal for any speaker arrangement.

NOTE: Because of the way the W component is scaled, it is recommended that you only decode with BFEncode signals with BFDecode1 and it's methods.

WARNING: All of the B-format signals MUST be audio rate signals. If you want to zero one out, use K2A.ar(0).

Class Methods

BFDecode1.ar1(w, x, y, z, azimuth: 0, elevation: 0, maxDist: 10, distance: 10, wComp: 0, mul: 1, add: 0, scaleflag: 1)

3D Ambisonic decoder with compensation for speakers at different distances (delay and intenisty caluclated for meters).

Arguments:

w

B-format signal.

x

B-format signal.

y

B-format signal.

z

B-format signal.

azimuth

The angle from 0pi front and center of the speaker. Can be an array of angles.

elevation

The angle from 0pi center of the speaker. Can be an array of angles.

maxDist

The distance (in meters) to the furthest speaker from center (this allocates the delay size).

distance

The distance (in meters) to each speaker.

wComp

chooses how the W channels is scaled. If 0, a scaler of 0.707 is used. If 1, W is varied according to the scaling of the X, Y and Z channels. 1 is the default.

mul
add
scaleflag

If 1, apply amplitude scaling to the closest signals to match more distant speakers.

BFDecode1.ar(w, x, y, z, azimuth: 0, elevation: 0, wComp: 0, mul: 1, add: 0)

Arguments:

w

B-format signal.

x

B-format signal.

y

B-format signal.

z

B-format signal.

azimuth

The angle from 0pi front and center of the speaker. Can be an array of angles.

elevation

The angle from 0pi center of the speaker. Can be an array of angles.

wComp

Chooses how the W channels is scaled. If 0, a scaler of 0.707 is used. If 1, W is varied according to the scaling of the X, Y and Z channels. 1 is the default.

mul
add

Inherited class methods

Instance Methods

.checkInputs

Inherited instance methods

Examples