pub fn build_ambience_layer( plans: &[StemPlan], timeline: &IndexMap<i64, i64>, total_ms: i64, level_db: f64, ) -> Result<(Segment, Vec<Label>)>