Higher-Order Ambisonic Encoder — Point Sources & Speaker Beds

Encode a single point source or an existing multichannel loudspeaker bed into portable Full-3D ambiX ACN/SN3D, from 1st through 5th order.

Author: Shai CohenAffiliation: Department of Music, Bar-Ilan University, IsraelLicense: MIT LicenseRepo: Praat AudioTools
Contents:

What this does

Higher-Order Ambisonic Encoder converts either a point source or an existing multichannel loudspeaker bed into a combined ambiX ACN/SN3D B-format representation. It supports Full-3D HOA orders 1–5: 4, 9, 16, 25, or 36 channels.

One encoder, two jobs. Point-source mode places one source at a chosen azimuth/elevation. Speaker-bed mode interprets every input channel as a loudspeaker feed at a known direction and re-encodes the complete bed into Ambisonics.

Two input modes

Point source

Mono input is encoded directly. Stereo or multichannel input is first summed to mono, then placed at one direction. Distance applies one shared inverse-distance amplitude scalar; it is not near-field compensation.

Multichannel speaker bed

Each input channel is treated as a fixed source located at its loudspeaker direction. The ACN/SN3D contribution of every feed is accumulated into one Ambisonic field. This avoids extracting and encoding channels one by one.

Speaker-bed re-encoding is not an inverse decoder. It represents the loudspeaker feeds as sources at their speaker positions. If those feeds came from an earlier Ambisonic decode, the process does not mathematically recover the original B-format.

Speaker-bed layouts

LayoutInput channelsNotes
2.02L/R at ±30°
4.0 quad4Four directional feeds
5.05L, R, C, Ls, Rs
5.16Channel 4 treated explicitly as LFE
7.07Seven directional feeds
7.18Choose explicitly when channel 4 is LFE
8-ring8Channel 1 front, then evenly spaced around the ring
7.1.412Eight bed channels including LFE + four height feeds
12-ring12Even horizontal ring
16-ring16Even horizontal ring
22.224NHK / Spat channel order; two LFE feeds handled separately
Even horizontal ring2–64Uses all input channels at equal angular spacing
Auto is ring-first for ambiguous channel counts. 8 channels → 8-ring, 12 → 12-ring, 16 → 16-ring. If an 8-channel file is actually 7.1, or a 12-channel file is 7.1.4, choose that cinema layout explicitly.

HOA orders

OrderambiX channelsACN range
1st4ACN0–3
2nd9ACN0–8
3rd16ACN0–15
4th25ACN0–24
5th36ACN0–35

The encoder uses a generic real spherical-harmonic engine with ACN indexing and SN3D normalization, rather than a separate hard-coded formula set for each order.

LFE policy

Ambisonics has no directional LFE component. For 5.1, 7.1, 7.1.4, and 22.2, choose one of two explicit policies:

Workflow examples

8-channel ring master
        ↓
Encoder: Speaker Bed / 8-ring / HOA3
        ↓
16-channel ambiX master
        ↓
Decoder → 7.1.4 / 22.2 / another ring
        └→ IRCAM ambiX B-format → binaural
Mono source
   ↓
Encoder: Point Source / azimuth / elevation / HOA5
   ↓
36-channel ambiX master

Technical behavior

Outputs

Choose individual ACN channels, one combined multichannel B-format Sound, or both. Optional WAV export validates the combined file. Speaker-bed output names identify the source layout; point-source output names identify the encoded position/preset.