pub struct KeyEstimate {
pub key: KeySignature,
pub covered_pitches: usize,
pub total_pitches: usize,
pub weighted_covered_beats: f64,
pub total_duration_beats: f64,
pub confidence: u8,
pub rule_id: String,
pub evidence: Vec<NoteAddr>,
}Expand description
A deterministic key candidate ranked by duration-weighted diatonic pitch coverage.
Fields§
§key: KeySignature§covered_pitches: usize§total_pitches: usize§weighted_covered_beats: f64Sum of note durations whose pitches belong to this key candidate.
total_duration_beats: f64Sum of pitched-note durations used as the weighting denominator.
confidence: u8§rule_id: String§evidence: Vec<NoteAddr>Trait Implementations§
Source§impl Clone for KeyEstimate
impl Clone for KeyEstimate
Source§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
Source§impl PartialEq for KeyEstimate
impl PartialEq for KeyEstimate
Source§impl Serialize for KeyEstimate
impl Serialize for KeyEstimate
impl StructuralPartialEq for KeyEstimate
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