pub struct NoteSemanticMetadata {Show 25 fields
pub part: usize,
pub staff: usize,
pub measure: usize,
pub voice: usize,
pub note: usize,
pub is_unpitched: bool,
pub tie_start: bool,
pub tie_end: bool,
pub duration_beats: f64,
pub pitch_midi_cents: Vec<i32>,
pub offset_x: Option<f64>,
pub offset_y: Option<f64>,
pub relative_x: Option<f64>,
pub relative_y: Option<f64>,
pub dynamic: Option<String>,
pub lyric: Option<String>,
pub chord_label: Option<String>,
pub technique_text: Option<String>,
pub articulations: Vec<String>,
pub guitar_technique: Option<GuitarTechnique>,
pub guitar_bend_alter_cents: Option<i16>,
pub guitar_bend_curve: Vec<GuitarBendPoint>,
pub fingerings: Vec<u8>,
pub instrument_id: Option<String>,
pub microtone_cents: Vec<i16>,
}Expand description
Stable note-level semantic metadata that avoids forcing browser hosts to parse SVG elements.
Fields§
§part: usize§staff: usize§measure: usize§voice: usize§note: usize§is_unpitched: bool§tie_start: boolWhether the note starts or ends an authored tie.
tie_end: bool§duration_beats: f64Per-note performed duration in canonical beats, including dots and tuplets.
pitch_midi_cents: Vec<i32>Exact sounding pitch for each source pitch in hundredths of a MIDI semitone.
offset_x: Option<f64>MusicXML note placement offsets in tenths, when authored.
offset_y: Option<f64>§relative_x: Option<f64>§relative_y: Option<f64>§dynamic: Option<String>§lyric: Option<String>§chord_label: Option<String>§technique_text: Option<String>§articulations: Vec<String>Ordered note articulations using stable kebab-case names; tremolo includes its level.
guitar_technique: Option<GuitarTechnique>Guitar technique used by tablature playback/rendering hosts.
guitar_bend_alter_cents: Option<i16>Authored bend amount in cents, when present.
guitar_bend_curve: Vec<GuitarBendPoint>Authored multi-point bend/hold/release curve, when present.
fingerings: Vec<u8>§instrument_id: Option<String>§microtone_cents: Vec<i16>One entry per pitch in source order; zero means no microtonal offset.
Trait Implementations§
Source§impl Clone for NoteSemanticMetadata
impl Clone for NoteSemanticMetadata
Source§impl Debug for NoteSemanticMetadata
impl Debug for NoteSemanticMetadata
Source§impl<'de> Deserialize<'de> for NoteSemanticMetadata
impl<'de> Deserialize<'de> for NoteSemanticMetadata
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 NoteSemanticMetadata
impl PartialEq for NoteSemanticMetadata
Source§impl Serialize for NoteSemanticMetadata
impl Serialize for NoteSemanticMetadata
impl StructuralPartialEq for NoteSemanticMetadata
Auto Trait Implementations§
impl Freeze for NoteSemanticMetadata
impl RefUnwindSafe for NoteSemanticMetadata
impl Send for NoteSemanticMetadata
impl Sync for NoteSemanticMetadata
impl Unpin for NoteSemanticMetadata
impl UnsafeUnpin for NoteSemanticMetadata
impl UnwindSafe for NoteSemanticMetadata
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