Skip to main content

Module loudness

Module loudness 

Source
Expand description

Loudness / dynamics: RMS, EBU R128 / BS.1770 loudness, LRA, ReplayGain, crest factor, statistical moments. Re-exports only (AU-LOUD).

All hot paths are zero-heap and reuse the shared biquad engine (crate::features::filters::biquad) for K-weighting.

Re-exports§

pub use crest_factor::crest_factor;
pub use crest_factor::crest_factor_db;
pub use dynamic_complexity::dynamic_complexity;
pub use k_weighting::k_weighting_coeffs;
pub use lra::loudness_range;
pub use moments::moments;
pub use moments::Moments;
pub use r128::integrated_lufs;
pub use r128::momentary_lufs;
pub use r128::short_term_lufs;
pub use replay_gain::replay_gain_db;
pub use replay_gain::replay_gain_scale;
pub use replay_gain::REPLAY_GAIN_2_TARGET_LUFS;
pub use rms::rms;
pub use rms::rms_dbfs;

Modules§

crest_factor
Crest factor — peak-to-RMS ratio, delegated to [etalon_signal::loudness].
dynamic_complexity
Dynamic complexity — average absolute deviation of loudness over time.
k_weighting
ITU-R BS.1770 / EBU R128 K-weighting pre-filter, as two biquads.
lra
Loudness Range (LRA) per EBU Tech 3342.
moments
Statistical moments of a signal: mean, variance, skewness, kurtosis.
r128
Integrated / momentary / short-term loudness per ITU-R BS.1770 & EBU R128.
replay_gain
ReplayGain 2.0 track/album gain from integrated loudness.
rms
Block RMS (root-mean-square) level, linear and in dBFS, delegated to [etalon_signal::loudness].