Skip to main content

band_balance

Function band_balance 

Source
pub fn band_balance(
    left: (f32, f32, f32),
    right: (f32, f32, f32),
) -> (f32, f32, f32)
Expand description

The per-band field: ratio taken over each band’s own per-channel energy, (bass, mid, treb) in and out.

The two triples come from BandSplitter::split run on each channel’s spectrum, so the band edges are by construction the ones bass/mid/treb already use rather than a second set that happens to agree. A band whose louder channel sits below WAVE_FLOOR reads exactly 0: the treble of a bass-only source has no position, and a ratio of two leakage floors would invent one.