Enum abc_parser::datatypes::MusicSymbol[][src]

pub enum MusicSymbol {
    Note {
        decoration: Option<Decoration>,
        accidental: Option<Accidental>,
        note: char,
        octave: i8,
        length: f32,
    },
    Chord {
        decoration: Option<Decoration>,
        notes: Vec<MusicSymbol>,
        length: f32,
    },
    GraceNotes {
        acciaccatura: Option<()>,
        notes: Vec<MusicSymbol>,
    },
    Tuplet {
        p: u32,
        q: u32,
        r: u32,
        notes: Vec<MusicSymbol>,
    },
    Bar(String),
    Rest(Rest),
    Ending(u32),
    VisualBreak(),
}

Variants

Fields of Note

Fields of Chord

Fields of GraceNotes

An r value of 0 indicates that the parser does not have enough information and it must be determined from the time signature.

Fields of Tuplet

Methods

impl MusicSymbol
[src]

Panics

If the number of notes is not equal to p

Trait Implementations

impl ToABC for MusicSymbol
[src]

Creates a valid ABC text representation of the object.

impl Debug for MusicSymbol
[src]

Formats the value using the given formatter. Read more

impl PartialEq for MusicSymbol
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for MusicSymbol

impl Sync for MusicSymbol