Skip to main content

Module lra

Module lra 

Source
Expand description

Loudness Range (LRA) per EBU Tech 3342.

LRA is the spread between the 10th and 95th percentiles of the gated short-term loudness distribution. The caller supplies the short-term loudness values (LUFS, e.g. from a 3 s sliding short_term_lufs) plus a scratch buffer; this function gates them (absolute −70 LUFS, then relative −20 LU below the power-mean) and reports P95 − P10 in LU.

Zero-heap. Gated values are copied into the caller-owned scratch slice and sorted in place there — no allocation, and the input is left untouched.

Functions§

loudness_range
Loudness Range (LU) of a short-term loudness series.