Ambisonics¶
What is Ambisonics?¶
Ambisonics is a full-sphere, speaker-independent spatial audio format.
Although proposed several decades ago, it remained mostly overlooked until recently. Today, it is primarily used in VR audio applications.
Generalization of mid/side encoding¶
If you are familiar with Mid/Side (M/S) stereo processing, First-Order Ambisonics (FOA) extends the exact same concept to 3D:
The “Mid” becomes an omnidirectional component (W) capturing overall sound pressure.
The “Sides” become three bidirectional (figure-of-eight) components capturing sound pressure gradients along each axis: front-rear (X), left-right (Y), and top-bottom (Z).
See below for more details.
Spherical harmonics and ambisonic order¶
Ambisonics can go beyond the three primary X, Y, Z axes mentioned above to encode a full-sphere sound field centered at a listening point, capturing finer spatial detail through Higher-Order Ambisonics (HOA).
If you are familiar with the concept of using an expansion of simple sine waves (Fourier series) to represent any complex audio waveform, you should also easily grasp the core principle of Ambisonics: using a spherical harmonic expansion to represent any complex 3D sound field (Fig. 1).
Each ambisonic channel carries the time-varying weight—sampled at the audio rate—of a specific harmonic function representing either the acoustic pressure or one of its spatial derivatives at the listening point.
Fig. 1 Representation of spherical harmonic functions up to order 3. You can think these function shapes as (virtual) microphone polar patterns, where the bright vs. dark colors represent positive vs. inverted polarity.¶
As illustrated in Fig. 1, spherical harmonics are organized as hierarchical orders:
0th order: represents the overall sound pressure (omnidirectional)
1th order: represents the pressure gradients along the primary X, Y, Z axes (bidirectional)
2nd and higher orders: represent increasingly complex and detailed directional patterns
To carry an ambisonic signal in practice, the spherical harmonic expansion has
to be truncated at a given order N, to which corresponds to a fixed number
(N+1)² of ambisonic channels:
1st order: 4 channels
2nd order: 9 channels
3rd order: 16 channels
and so on…
Increasing the order N increases the level of spatial detail in the sound
field carried by the ambisonic signal, although that extra spatial “sharpness”
comes at the cost of a rapidly growing channel count and higher computational
load.
Scene-based, speaker-agnostic encoding¶
Ambisonics is a scene-based encoding technique, which greatly differs from the usual channel-based encoding (1 channel = 1 speaker) and which also contrasts with object-based immersive techniques such as Dolby Atmos (each object carries its own audio stream plus positional metadata).
Ambisonic channels are stored and transmitted like any other audio channel; however, they aren’t intended for direct playback. They need to be decoded into a channel-based format first (Fig. 2), just like Mid/Side encoded stereo channels need to be decoded back to Left/Right channels. This constraint is also one of the greatest advantages of the ambisonic format: its representation of the 3D sound field is speaker-independent, i.e., the same ambisonic signal can be decoded into any channel-based format such as L/R stereo speakers, binaural, quadraphonic or 5.1 surround systems, dome of speakers, etc.
Likewise, the audio signals captured by an array of microphones placed at a listening point do not directly translate into an ambisonic signal. Those raw audio signals first need to go through an ambisonic encoder.
Between those encoding and decoding stages, the whole sound field (scene) can be processed in various ways. Thanks to its mathematical foundations, the ambisonic format allows operations such as rotating the field to be performed exactly (losslessly) and at low computational cost.
Fig. 2 A typical Ambisonics audio pipeline (encode → process → decode). Yellow arrows represent regular audio channels (e.g., input raw microphone signals, output binaural signal) and blue arrows represent ambisonic channels (here 4 channels = 1st-order Ambisonics).¶
Ambisonics vs. real “3D” spatial audio¶
It is worth noting that standard Ambisonics does not natively integrate the concept of distance to a sound source. Instead, it assumes that the sound is coming from all directions to the listening point as plane waves. This makes the maths simpler: a full-sphere sound field can then be represented simply by an expansion of real spherical harmonic functions. A sphere is 3D geometric object but those spherical harmonic functions are defined on the surface of the sphere; it might therefore be more accurate to define Ambisonics as a “2.5D” technique rather than a full 3D spatial audio technique.
A basic encoder converting point sources into an ambisonic signal takes only the directions (azimuth, elevation) to these sources. It is common, however, that encoders integrate Ambisonics with other kinds of pre-processing algorithms to simulate things like proximity effect, wall reflections, doppler effect for moving sources, etc.
Ambisonics format standards¶
Ambisonics is used as an open standard to pass an encoded 3D sound field through multiple processing units and software.
There have been multiple proposed conventions, which differ in how the channels are ordered and how the channel signal gains are normalized relative to each other.
This “SP4T” VCV Rack plugin uses the AmbiX (Ambisonic Exchange) convention, which is the most recent and common one (it is also the one that best supports high-order ambisonic signals). AmbiX uses ACN (Ambisonic Channel Numbering) and SN3D normalization.
How to interpret the ambisonic channels?¶
A First-Order Ambisonic (FOA) signal has 4 channels W, X, Y, Z (Table 1), i.e., the so-called B-format obtained after encoding raw microphone signals (A-format).
Channel (ACN) |
Order |
Axis |
Direction |
Plot |
|---|---|---|---|---|
0 |
0th |
(W) |
isotropic / omnidirectional |
|
1 |
1st |
Y |
left–right |
|
2 |
1st |
Z |
top–bottom |
|
3 |
1st |
X |
front–rear |
In idealized settings, the first channel corresponds to the sound that would be picked up by an omnidirectional microphone, while the other three channels relate to what would be picked up by figure-8 microphones oriented along the X, Y, Z axes.
The first two ACN channels W, Y are thus equivalent — up to some gain normalization — to the familiar Mid/Side representation of a stereo signal.
Subsequent channels, if any, represent Higher-Order Ambisonics (HOA). They are harder to interpret, since they correspond to more complex harmonics, most of which contain information across more than one axis (Fig. 1).
Advantages and limitations¶
Ambisonics has multiple advantages that offer real opportunities for sound design and audio synthesis:
It is a relatively simple and non-proprietary technique.
It is speaker-agnostic: the same encoded signal can be decoded in many different ways, e.g., to binaural or to any speaker layout, whether standard or arbitrary (see above).
The whole sound field can be processed in simple and efficient ways, like exact (lossless) field rotation or mirroring. It is an advanced panning tool.
Applications go well beyond panning: for example, the omni vs. directional components of the sound field can be easily decoupled and processed independently (just like Mid/Side processing).
It also has a few limitations:
Why Ambisonics in modular synthesis / VCV Rack?¶
The point of Ambisonics in a modular context goes well beyond immersive-audio playback. Because each ambisonic channel is stored and transmitted just like an ordinary audio signal, the whole sound field becomes something that can be patched, modulated, processed and routed like anything else on the rack (remainder: ambisonic channels do not carry “speaker” signals, and some operations stay spatially meaningful only when they are applied consistently across the whole channel set).
There is no obligation to represent a realistic scene: the ambisonic channels can just as well carry different sound textures mapped across a sphere, turning spatial operations into a powerful sound-design tool. And why not try using it with CV signals? There’s no limitation, really.
Modular synthesis has the right workflow for exploring the full range of ambisonic possibilities. VCV Rack’s polyphonic cables also make it very convenient to carry ambisonic signals between modules (up to 3rd order = 16 channels).
This VCV Rack plugin aims to provide a comprehensive set of modules for typical ambisonic operations (Fig. 2) such as encoding one or more sources into a 3D sound field (or directly synthesizing the sound field), then rotating, flipping, splitting and processing that field, and finally decoding it to a mono, stereo or binaural signal or to any speaker array. In the spirit of modular synthesis, almost anything can be controlled and CV modulated!