Skip to main content

plan_normalization_json

Function plan_normalization_json 

Source
pub fn plan_normalization_json(
    report_json: &str,
    target_lufs: f64,
    ceiling_dbtp: f64,
) -> Result<String, String>
Expand description

The gain that brings a measured mix (a report’s JSON) to target_lufs without its true peak passing ceiling_dbtp or its sample peak reaching the report’s limiterThreshold. Returns JSON { gainDb, integratedLufs, truePeakDbtp, peakLimited, limiterLimited }, or null for a mix silent below the absolute gate.

§Errors

Refuses a report that is not a JSON object with frames, or whose limiterThreshold is neither a positive number nor null.