pub struct BpmResult {
pub bpm: f64,
pub beats: Vec<Duration>,
pub confidence: f32,
}Expand description
Result of BPM (beats-per-minute) detection over an audio stream.
Fields§
§bpm: f64Detected tempo in beats per minute.
beats: Vec<Duration>Timestamp of each detected beat, measured from the start of the file.
confidence: f32Detection confidence in [0.0, 1.0]; values below 0.4 indicate an
ambiguous rhythm.
Trait Implementations§
impl StructuralPartialEq for BpmResult
Auto Trait Implementations§
impl Freeze for BpmResult
impl RefUnwindSafe for BpmResult
impl Send for BpmResult
impl Sync for BpmResult
impl Unpin for BpmResult
impl UnsafeUnpin for BpmResult
impl UnwindSafe for BpmResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more