fn detect_tempo(samples: &[f32], sample_rate: u32) -> Option<f64>
Detect tempo using onset-strength autocorrelation.