io.musicxml.tables

tables

What MusicXML calls things and what WSMN calls them.

Every table maps a MusicXML name (an element name, a kind, a bar-style, a type of note) to the ready-made OMK symbol, so that the reader and the writer agree on one spelling in each direction. A name absent from a table is the reader’s cue to warn and mint or skip; the tests pin which of the WSMN symbols the tables cover.

Attributes

Name Description
STEPS
STEP_CHROMATIC
NOTE_TYPES
CLEF_SIGNS
MODES
MODE_TONIC_DEGREE
BAR_STYLES
GROUP_SYMBOLS
GROUP_BARLINES
KINDS
ARTICULATIONS
BREATH_MARKS
ORNAMENTS
TECHNICAL
FINGERINGS
STRINGS
PLUCKS
HANDBELLS
HARMON_MUTES
HOLES
PER_TONE_TECHNICAL
DYNAMICS
FERMATAS
ARPEGGIOS
WEDGES
OCTAVE_SHIFTS
PEDALS
NOTATION_SPANS
WORDS
TEMPO_TERMS
GRADUAL_TEMPO_WORDS
GRADUAL_TEMPO_PREFIXES
NOTE_TYPE_NAMES
CLEF_SIGN_NAMES
BAR_STYLE_NAMES
GROUP_SYMBOL_NAMES
GROUP_BARLINE_NAMES
KIND_NAMES
MODE_NAMES
NOTATION_ELEMENTS
HARMON_MUTE_STATES
HOLE_STATES
ARPEGGIO_DIRECTIONS
DYNAMIC_NAMES
WEDGE_TYPES
OCTAVE_SHIFT_TYPES
NOTATION_SPAN_NAMES
PER_TONE_MARKS
MINTED_PER_TONE_PREFIXES

Functions

Name Description
tone_from_pitch The tone a <pitch> names: step letter, chromatic alteration, MusicXML octave.
pitch_of_tone The <pitch> of an octave-qualified tone: step, alter, octave.
normalize_words Free text as the tables key it: trimmed, lower case, one space between words.
is_gradual_tempo Whether text asks for a gradual change of tempo (rit., poco a poco accel.).
inverse table the other way round; where several names share a symbol, the first is kept.
is_per_tone Whether mark belongs to one tone of a chord, as a fingering does,