Function to_timeline

Source
pub fn to_timeline(
    segments: &[(f64, f64)],
    start: f64,
    src_in: f64,
    duration: f64,
    speed: f64,
    keep_quiet: bool,
) -> (Vec<f64>, Vec<(f64, f64)>)
Expand description

Turn source-time loud segments into timeline cut times + ranges to remove for a clip that starts at start with speed (forward only; reversed/frozen clips are not auto-cut): returns (cuts, quiet_ranges) in timeline seconds, quiet ranges = the complement of the loud segments inside the clip. keep_quiet swaps the roles (keep ambient, remove speech).