pub struct OnsetEnvelope {
pub frame_rate: f64,
pub values: Vec<f32>,
pub low: Vec<f32>,
pub low_level_db: Vec<f32>,
}Expand description
Onset strength envelope and a low-frequency onset band, both at frame_rate Hz.
Frame i is centred at time i / frame_rate seconds.
Fields§
§frame_rate: f64§values: Vec<f32>Normalised onset strength (unit standard deviation, local mean removed, ≥ 0).
low: Vec<f32>Onset strength of the bands below ~200 Hz (kick-drum accents), same normalisation.
low_level_db: Vec<f32>Level of the bands below ~200 Hz per frame in dB (for accent and downbeat cues).
Trait Implementations§
Source§impl Clone for OnsetEnvelope
impl Clone for OnsetEnvelope
Auto Trait Implementations§
impl Freeze for OnsetEnvelope
impl RefUnwindSafe for OnsetEnvelope
impl Send for OnsetEnvelope
impl Sync for OnsetEnvelope
impl Unpin for OnsetEnvelope
impl UnsafeUnpin for OnsetEnvelope
impl UnwindSafe for OnsetEnvelope
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