pub struct OmrRhythmicEvent {
pub pitches: Vec<Pitch>,
pub is_unpitched: bool,
pub instrument_id: Option<String>,
pub tab_positions: Vec<TabPosition>,
pub duration: Duration,
pub dot_count: u8,
pub region: OmrRegion,
pub confidence: f32,
}Expand description
A recognized note or rest. Chords are represented by several pitches with one duration.
Fields§
§pitches: Vec<Pitch>§is_unpitched: boolSet for an unpitched percussion event; pitches then stores display placement only.
instrument_id: Option<String>Optional source percussion/instrument identity attached to an unpitched event.
tab_positions: Vec<TabPosition>One tablature string/fret position per pitch. The initial local PNG recognizer does not populate this, but an external TAB OMR provider may do so without losing the association.
duration: Duration§dot_count: u8§region: OmrRegion§confidence: f32Model confidence in the closed interval 0.0..=1.0.
Implementations§
Trait Implementations§
Source§impl Clone for OmrRhythmicEvent
impl Clone for OmrRhythmicEvent
Source§impl Debug for OmrRhythmicEvent
impl Debug for OmrRhythmicEvent
Source§impl<'de> Deserialize<'de> for OmrRhythmicEvent
impl<'de> Deserialize<'de> for OmrRhythmicEvent
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 OmrRhythmicEvent
impl PartialEq for OmrRhythmicEvent
Source§impl Serialize for OmrRhythmicEvent
impl Serialize for OmrRhythmicEvent
impl StructuralPartialEq for OmrRhythmicEvent
Auto Trait Implementations§
impl Freeze for OmrRhythmicEvent
impl RefUnwindSafe for OmrRhythmicEvent
impl Send for OmrRhythmicEvent
impl Sync for OmrRhythmicEvent
impl Unpin for OmrRhythmicEvent
impl UnsafeUnpin for OmrRhythmicEvent
impl UnwindSafe for OmrRhythmicEvent
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