pub struct InferenceResult {
pub pitches: Vec<Pitch>,
pub chords: Vec<Chord>,
pub pitch_deltas: [f32; 12],
}Expand description
Result of ML inference containing all pitch classes and chord candidates.
Fields§
§pitches: Vec<Pitch>All detected pitch classes.
chords: Vec<Chord>Chord candidates ranked by likelihood.
pitch_deltas: [f32; 12]Delta (probability - threshold) for each of the 12 pitch classes (C through B). Positive values indicate detected pitches, negative values indicate below threshold.
Trait Implementations§
Source§impl Clone for InferenceResult
impl Clone for InferenceResult
Source§fn clone(&self) -> InferenceResult
fn clone(&self) -> InferenceResult
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 InferenceResult
impl RefUnwindSafe for InferenceResult
impl Send for InferenceResult
impl Sync for InferenceResult
impl Unpin for InferenceResult
impl UnsafeUnpin for InferenceResult
impl UnwindSafe for InferenceResult
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