pub struct PitchLayer {
pub glides: Vec<Rated<GlideFit>>,
pub drops: Vec<Rated<DropFit>>,
pub vibrato: Vec<Rated<VibratoFit>>,
pub flags: PitchFlags,
pub confidence: Confidence<NoSpread>,
pub counts: PitchCounts,
}Expand description
The pitch layer of a stem.
Fields§
§glides: Vec<Rated<GlideFit>>The glides, in time order.
drops: Vec<Rated<DropFit>>The accepted pitch drops, in time order.
vibrato: Vec<Rated<VibratoFit>>The accepted vibratos, in time order.
flags: PitchFlagsThe flags.
confidence: Confidence<NoSpread>The confidence of the layer as a whole; no estimate when the line plays chords or the stem has no notes.
counts: PitchCountsThe counts behind the summary.
Implementations§
Source§impl PitchLayer
impl PitchLayer
Sourcepub fn of(input: &PitchInput<'_>) -> Result<Self, PitchError>
pub fn of(input: &PitchInput<'_>) -> Result<Self, PitchError>
Reads the pitch layer of a stem.
§Errors
Returns a PitchError when the stem’s rate is too low for the
200 Hz band of the sub-band line, or a confidence cannot be built.
Trait Implementations§
Source§impl Clone for PitchLayer
impl Clone for PitchLayer
Source§impl Debug for PitchLayer
impl Debug for PitchLayer
Source§impl PartialEq for PitchLayer
impl PartialEq for PitchLayer
impl StructuralPartialEq for PitchLayer
Auto Trait Implementations§
impl Freeze for PitchLayer
impl RefUnwindSafe for PitchLayer
impl Send for PitchLayer
impl Sync for PitchLayer
impl Unpin for PitchLayer
impl UnsafeUnpin for PitchLayer
impl UnwindSafe for PitchLayer
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