pub fn bpm_for_bin(bin: usize, n_bins: usize, bpm_min: f32, bpm_max: f32) -> f32Expand description
Map bin b of an n-bin salience curve to its BPM.
Bins are spaced linearly and inclusively over [bpm_min, bpm_max]:
bpm(b) = bpm_min + (bpm_max - bpm_min) * b / (n - 1) for n > 1, and
bpm_min for n == 1.