pub struct BeatAnalysis {
pub beats: Vec<f32>,
pub downbeats: Vec<f32>,
pub mel: Tensor,
pub beat_logits: Vec<f32>,
pub downbeat_logits: Vec<f32>,
}Expand description
Full analysis result from the beat tracking pipeline.
Fields§
§beats: Vec<f32>Beat times in seconds (sorted, deduplicated).
downbeats: Vec<f32>Downbeat times in seconds (sorted, deduplicated, snapped to nearest beat).
mel: TensorMel spectrogram tensor with shape [1, T, 128] at 50 fps.
beat_logits: Vec<f32>Raw beat logits, one per spectrogram frame.
downbeat_logits: Vec<f32>Raw downbeat logits, one per spectrogram frame.
Trait Implementations§
Source§impl Clone for BeatAnalysis
impl Clone for BeatAnalysis
Source§fn clone(&self) -> BeatAnalysis
fn clone(&self) -> BeatAnalysis
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BeatAnalysis
impl RefUnwindSafe for BeatAnalysis
impl Send for BeatAnalysis
impl Sync for BeatAnalysis
impl Unpin for BeatAnalysis
impl UnsafeUnpin for BeatAnalysis
impl UnwindSafe for BeatAnalysis
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more