Skip to main content

vital_beats_per_second

Function vital_beats_per_second 

Source
pub fn vital_beats_per_second(bpm: Bpm) -> f64
Expand description

The tempo Vital stores for a host tempo of bpm, in beats per second.

SoundEngine::setBpm divides by 60 in 32-bit floats. The shipped 1.0.7 plug-in computes it as f32(bpm) * f32(1 / 60), a multiply by the reciprocal, which can lie one or two f32 steps from the correctly rounded bpm / 60 on a fractional tempo.