pub struct Beat {
pub start: f32,
pub duration: f32,
pub confidence: f32,
}Expand description
A beat is the fundamental time unit of a piece of music; for instance, each tick of a metronome. Beats are usually multiples of tatums.
Fields§
§start: f32The starting point, in seconds, of the time interval.
duration: f32The duration, in seconds, of the time interval.
confidence: f32A value ranging betweeen 0.0 - 1.0 that indicates the confidence of
the interval.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Beat
impl<'de> Deserialize<'de> for Beat
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Beat
Auto Trait Implementations§
impl Freeze for Beat
impl RefUnwindSafe for Beat
impl Send for Beat
impl Sync for Beat
impl Unpin for Beat
impl UnsafeUnpin for Beat
impl UnwindSafe for Beat
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