pub fn span_detuning(f1: f64, excitations: &[f64]) -> f64
How far a span’s first mode is from the nearest excitation, as a share of the mode: min |f1 - f_e| / f1. 1 for a slack span or none.