Skip to main content

fit_gain

Function fit_gain 

Source
pub fn fit_gain(clip: &ClipMetrics, renders: &[ClipMetrics]) -> Option<f64>
Expand description

The gain in dB that matches the level of clip to renders.

It is the median over the renders of their RMS level minus the clip’s, each pair over its common span, as ClipOutput::RmsDb compares them. Returns None for no render.