pub enum Representation {
Show 21 variants
Lines,
Atoms,
Spectrum {
max_peaks: usize,
frame_secs: Option<f64>,
},
Envelope {
frame_secs: Option<f64>,
},
Derivative,
Samples,
Ledger {
depth: usize,
},
Pitch {
max_notes: usize,
frame_secs: f64,
},
Formants {
max_formants: usize,
frame_secs: f64,
},
Stereo {
frame_secs: f64,
},
Bands,
Crest,
Loudness,
Onsets,
Alias {
oversample: u32,
},
Harmony {
reading: Harmonic,
frame_secs: f64,
floor_db: f64,
},
Periodicity {
frame_secs: f64,
window_secs: f64,
curve: bool,
},
Modulation {
frame_secs: f64,
window_secs: f64,
bpm: Option<f64>,
},
SelfSimilarity {
frame_secs: f64,
cell_secs: f64,
smooth_secs: f64,
window_secs: f64,
floor_db: f64,
listed: usize,
curve: bool,
},
Bindings,
Arguments,
}Variants§
Lines
Atoms
Spectrum
Envelope
Derivative
Samples
Ledger
Pitch
Formants
Stereo
Bands
Crest
Loudness
Onsets
Alias
Harmony
The partials it is read from step by frame_secs and stop at floor_db.
Periodicity
Windows of window_secs centred every frame_secs; curve adds each one’s heights.
Modulation
Windows of window_secs centred every frame_secs; bpm adds each rate in beats.
SelfSimilarity
Cells of cell_secs over frames every frame_secs; listed stripes and peaks are
listed, and curve adds the cells and matrices.
Fields
Bindings
Arguments
Implementations§
Source§impl Representation
impl Representation
Sourcepub fn reading(self) -> &'static Reading
pub fn reading(self) -> &'static Reading
Exhaustive, so a variant with no row is a compile error.
pub fn name(self) -> &'static str
pub fn consumes(self, closed: bool) -> Consumes
Sourcepub fn off_samples(self, sampled: bool) -> bool
pub fn off_samples(self, sampled: bool) -> bool
Whether a node’s samples alone answer this reading, sampled where it holds samples.
pub fn from_name(name: &str) -> Option<Representation>
Trait Implementations§
Source§impl Clone for Representation
impl Clone for Representation
Source§fn clone(&self) -> Representation
fn clone(&self) -> Representation
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 moreimpl Copy for Representation
Source§impl Debug for Representation
impl Debug for Representation
Source§impl PartialEq for Representation
impl PartialEq for Representation
impl StructuralPartialEq for Representation
Auto Trait Implementations§
impl Freeze for Representation
impl RefUnwindSafe for Representation
impl Send for Representation
impl Sync for Representation
impl Unpin for Representation
impl UnsafeUnpin for Representation
impl UnwindSafe for Representation
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