fn loop_end( plan: &StemPlan, start_ms: i64, cues: &[(i64, i64)], total_ms: i64, ) -> i64
The end of a looped span: the next cue of the same kind after this one.