Skip to main content

Module stereo

Module stereo 

Source
Expand description

The stereo field: where the mix sits between the two channels, and how far apart they are (ADR-0215).

Absolute, never levelled. Nothing here is divided by a running peak, the way gain divides the bands: balance = 0 means genuinely centred, so a source carrying no stereo information reads still instead of stretching its noise floor into a confident wandering pan. The price is a narrow usable range on real material, which shot --report publishes.

Nothing upstream reads this module, and it reads nothing but the hop’s two channels. The mono analysis stays a function of the channel average alone, so every field that existed before this module reads bit-identically for a stereo stream and for the mono-duplicated stream carrying its channel average — core/tests/dsp.rs holds that as an assertion.

Structs§

StereoField
One hop’s whole-mix stereo field.

Functions§

band_balance
The per-band field: ratio taken over each band’s own per-channel energy, (bass, mid, treb) in and out.
ratio
The absolute left/right ratio of two non-negative magnitudes, -1..=1, negative to the left.