pub struct VoiceLeadingObservation {
pub upper: NoteAddr,
pub lower: NoteAddr,
pub upper_motion: i16,
pub lower_motion: i16,
pub upper_motion_cents: i32,
pub lower_motion_cents: i32,
pub parallel_perfect: bool,
pub confidence: u8,
pub rule_id: String,
pub evidence: Vec<NoteAddr>,
}Expand description
Voice-leading observation for two adjacent voices at an aligned event.
Fields§
§upper: NoteAddr§lower: NoteAddr§upper_motion: i16§lower_motion: i16§upper_motion_cents: i32Exact signed upper-voice motion in cents.
lower_motion_cents: i32Exact signed lower-voice motion in cents.
parallel_perfect: bool§confidence: u8§rule_id: String§evidence: Vec<NoteAddr>Trait Implementations§
Source§impl Clone for VoiceLeadingObservation
impl Clone for VoiceLeadingObservation
Source§impl Debug for VoiceLeadingObservation
impl Debug for VoiceLeadingObservation
Source§impl<'de> Deserialize<'de> for VoiceLeadingObservation
impl<'de> Deserialize<'de> for VoiceLeadingObservation
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
impl Eq for VoiceLeadingObservation
Source§impl PartialEq for VoiceLeadingObservation
impl PartialEq for VoiceLeadingObservation
Source§impl Serialize for VoiceLeadingObservation
impl Serialize for VoiceLeadingObservation
impl StructuralPartialEq for VoiceLeadingObservation
Auto Trait Implementations§
impl Freeze for VoiceLeadingObservation
impl RefUnwindSafe for VoiceLeadingObservation
impl Send for VoiceLeadingObservation
impl Sync for VoiceLeadingObservation
impl Unpin for VoiceLeadingObservation
impl UnsafeUnpin for VoiceLeadingObservation
impl UnwindSafe for VoiceLeadingObservation
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