pub struct KeyEstimate {
pub tonic: PitchClass,
pub mode: Mode,
pub confidence: f32,
}Expand description
Result of a key classification.
Fields§
§tonic: PitchClassDetected tonic pitch class.
mode: ModeDetected mode.
confidence: f32Pearson correlation with the best-matching profile (0..1). Values below ~0.3 indicate low confidence (near-atonal input).
Trait Implementations§
Source§impl Clone for KeyEstimate
impl Clone for KeyEstimate
Source§fn clone(&self) -> KeyEstimate
fn clone(&self) -> KeyEstimate
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 moreSource§impl Debug for KeyEstimate
impl Debug for KeyEstimate
Source§impl<'de> Deserialize<'de> for KeyEstimate
impl<'de> Deserialize<'de> for KeyEstimate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for KeyEstimate
impl RefUnwindSafe for KeyEstimate
impl Send for KeyEstimate
impl Sync for KeyEstimate
impl Unpin for KeyEstimate
impl UnsafeUnpin for KeyEstimate
impl UnwindSafe for KeyEstimate
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