pub struct Note {Show 33 fields
pub id: String,
pub is_rest: bool,
pub pitches: Vec<Pitch>,
pub duration: Duration,
pub dot_count: u8,
pub tie_start: bool,
pub tie_end: bool,
pub beam: BeamState,
pub articulations: Vec<Articulation>,
pub dynamic: Option<Dynamic>,
pub stem_up: Option<bool>,
pub hairpin_start: Option<HairpinKind>,
pub hairpin_end: bool,
pub tuplet: Option<TupletInfo>,
pub chord_symbol: Option<ChordSymbol>,
pub is_grace: bool,
pub grace_slash: bool,
pub ottava_start: Option<OttavaKind>,
pub ottava_end: bool,
pub lyric: Option<Lyric>,
pub pedal_start: bool,
pub pedal_end: bool,
pub slur_start: bool,
pub slur_end: bool,
pub arpeggiate: Option<bool>,
pub technique_text: Option<String>,
pub fingering: Option<u8>,
pub string_number: Option<u8>,
pub note_head: NoteHead,
pub is_cue: bool,
pub trill_line_start: bool,
pub trill_line_end: bool,
pub guitar_technique: Option<GuitarTechnique>,
}Fields§
§id: String§is_rest: bool§pitches: Vec<Pitch>Single note: one pitch. Chord: multiple pitches (same duration).
duration: Duration§dot_count: u8§tie_start: bool§tie_end: bool§beam: BeamState§articulations: Vec<Articulation>§dynamic: Option<Dynamic>§stem_up: Option<bool>§hairpin_start: Option<HairpinKind>§hairpin_end: bool§tuplet: Option<TupletInfo>§chord_symbol: Option<ChordSymbol>§is_grace: bool§grace_slash: boolAcciaccatura: true (slash through stem). Appoggiatura: false.
ottava_start: Option<OttavaKind>§ottava_end: bool§lyric: Option<Lyric>§pedal_start: bool§pedal_end: bool§slur_start: bool§slur_end: bool§arpeggiate: Option<bool>Arpeggiate direction: Some(true) = up, Some(false) = down, None = none.
technique_text: Option<String>Technique/style instruction attached to this note (“pizz.”, “arco”, “con sord.”, etc.).
fingering: Option<u8>Left-hand fingering number (0 = open / thumb, 1–5 = fingers).
string_number: Option<u8>String number for plucked/bowed string instruments (1 = highest string).
note_head: NoteHead§is_cue: boolCue note (small-sized, does not count toward beat total).
trill_line_start: boolStart of a multi-note trill line span.
trill_line_end: boolEnd of a multi-note trill line span.
guitar_technique: Option<GuitarTechnique>Guitar-specific playing technique (bend, slide, hammer-on, pull-off).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Note
impl<'de> Deserialize<'de> for Note
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 Note
impl RefUnwindSafe for Note
impl Send for Note
impl Sync for Note
impl Unpin for Note
impl UnsafeUnpin for Note
impl UnwindSafe for Note
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