pub struct Descriptors {
pub frame_len: usize,
pub active_frames: usize,
pub centroid: Estimate<Stats<Hz>, Hz>,
pub centroid_over_f0: Estimate<Stats<Ratio>, Ratio>,
pub spread: Estimate<Stats<Hz>, Hz>,
pub rolloff85: Estimate<Stats<Hz>, Hz>,
pub rolloff95: Estimate<Stats<Hz>, Hz>,
pub flatness: Estimate<Stats<Normalized>, Normalized>,
pub band_share: Estimate<Vec<BandShare>, Normalized>,
pub peak_dbfs: Estimate<Decibels, Decibels>,
pub rms_dbfs: Estimate<Decibels, Decibels>,
pub crest_db: Estimate<Decibels, Decibels>,
}Expand description
The descriptors of a stem.
Fields§
§frame_len: usizeThe frame length N of the analysis.
active_frames: usizeThe number of active frames.
centroid: Estimate<Stats<Hz>, Hz>The spectral centroid, magnitude weights.
centroid_over_f0: Estimate<Stats<Ratio>, Ratio>The centroid over the median f0 of the note list.
spread: Estimate<Stats<Hz>, Hz>The spectral spread around the centroid, magnitude weights.
rolloff85: Estimate<Stats<Hz>, Hz>The 85 % magnitude rolloff.
rolloff95: Estimate<Stats<Hz>, Hz>The 95 % magnitude rolloff.
flatness: Estimate<Stats<Normalized>, Normalized>The spectral flatness, magnitude, 100 Hz to 10 kHz.
The power shares of the bands between BAND_EDGES_HZ.
peak_dbfs: Estimate<Decibels, Decibels>The peak level of the mono mix in dB relative to full scale.
rms_dbfs: Estimate<Decibels, Decibels>The RMS level of the mono mix in dB relative to full scale.
crest_db: Estimate<Decibels, Decibels>Peak over RMS in dB.
Trait Implementations§
Source§impl Clone for Descriptors
impl Clone for Descriptors
Source§impl Debug for Descriptors
impl Debug for Descriptors
Source§impl PartialEq for Descriptors
impl PartialEq for Descriptors
impl StructuralPartialEq for Descriptors
Auto Trait Implementations§
impl Freeze for Descriptors
impl RefUnwindSafe for Descriptors
impl Send for Descriptors
impl Sync for Descriptors
impl Unpin for Descriptors
impl UnsafeUnpin for Descriptors
impl UnwindSafe for Descriptors
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> CloneAny for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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