HoaLm:
Filter:
Classes (extension) | Libraries > Ambisonic Toolkit > Coefficients & Theory

HoaLm : Object
ExtensionExtension

Higher Order Ambisonic (HOA) indexing & coefficients
Source: HoaLm.sc

Description

Higher Order Ambisonic (HOA) component indexing & coefficients, by Associated Legendre degree (ℓ) and Associated Legendre index (m).

See Associated Legendre degree and Associated Legendre index in ATK Glossary.

Class Methods

HoaLm.new(lm)

Create a new instance by Associated Legendre degree (ℓ) and Associated Legendre index (m).

Arguments:

lm

An two slot Array of integers: [l, m]

HoaLm.newIndex(index, ordering: 'acn')

Create a new instance by Higher Order Ambisonic (HOA) index.

Arguments:

index

An integer.

ordering

Component ordering scheme:

\acnAmbisonic Channel Number (ACN)
\sidSingle Index Designation (SID)
\fumaFurse-Malham (FuMa)

Inherited class methods

Instance Methods

(ℓ, m) & HOA index

.lm

Return Associated Legendre degree (ℓ) and index (m).

.l

Return Associated Legendre degree (ℓ).

.m

Return Associated Legendre index (m).

.index(ordering: 'acn')

Return Higher Order Ambisonic (HOA) index.

Arguments:

ordering

Component ordering scheme:

\acnAmbisonic Channel Number (ACN)
\sidSingle Index Designation (SID)
\fumaFurse-Malham (FuMa)

.isInSubset(subset: 'zonal')

Test sub-group membership.

Arguments:

subset
\zonalZonal
\sectoralSectoral
\tesseralTesseral
\rotateRotation around z-axis, aka yaw

Discussion:

See also Visualization of the spherical harmonics.

Coefficients

.size

Return number of ambisonic components.

Offers polymorphism with HoaDegree: -size and HoaOrder: -size.

.sph(theta: 0, phi: 0)

Return N3D normalized angular encoding coefficient.

Arguments:

theta

Azimuth, in radians.

phi

Elevation, in radians.

.normalisation(scheme: 'n3d')

Return component normalisation coefficient.

Arguments:

scheme

Component normalisation schemes:

\n3dOrthonormal basis for 3D decomposition (N3D)
\sn3dSemi-normalised basis for 3D decomposition (SN3D)
\n2dOrthonormal basis for 2D decomposition (N2D)
\sn2dSemi-normalised basis for 2D decomposition (SN2D)
\maxNMaximum normalisation (maxN)
\MaxNGerzon / Furse-Malham (MaxN)
\fumaSynonym for MaxN (FuMa)

.reflection(mirror: 'reflect')

Return component reflection coefficient.

Arguments:

mirror
\reflectMirror across the origin. Equivalent to: \flip * \flop * \flap.
\flipMirror in the y-axis.
\flopMirror in the x-axis.
\flapMirror in the z-axis.
\CondonShortleyPhaseCondon-Shortley Phase. Equivalent to: \flip * \flop.
\originSynonym for \reflect.
\xSynonym for \flop.
\ySynonym for \flip.
\zSynonym for \flap.

Inherited instance methods

Examples

TBD