Skip to main content

Module step

Module step 

Source
Expand description

The steps of music21’s mei.base that decide what an attribute’s value stands for, one value at a time.

music21 reads MEI element by element, and its callers call those steps one by one: _accidentalFromAttr, _qlDurationFromAttr, _sharpsFromAttr, _getOctaveShift and the rest. Each table and rule here is one of them; from_mei reads a whole document through them, and the wheel’s music21.mei.base hands its callers each one.

Constants§

ARTICULATIONS
music21’s _ARTIC_ATTR_DICT: an artic and the name of music21’s class for it.
BARLINES
music21’s _BAR_ATTR_DICT: a right or rend and the barline style it names. Repeats, which start with rpt, are made apart.
COMPOUND_ARTICULATIONS
The artic values that are two marks, which music21 makes apart from its table.
DURATIONS
music21’s _DUR_ATTR_DICT: a dur and its quarter length.
GESTURAL_ACCIDENTALS
music21’s _ACCID_GES_ATTR_DICT: a sounding accid.ges and the accidental it names.
NO_DURATION
The quarter length music21 gives an element with no dur, small enough to be told apart: an <mRest> is given its measure’s length later.
PLAIN_ARTICULATION
The class music21 makes for a mark it has none of its own for.
REPEAT_PREFIX
What a repeat’s right starts with.
TREMOLO_MARKS
music21’s _MEI_UNITDUR_TO_TREMOLO_MARKS: a <bTrem>’s unitdur and the marks its tremolo is drawn with.
WRITTEN_ACCIDENTALS
music21’s _ACCID_ATTR_DICT: a written accid and the accidental it names.

Functions§

articulation_classes
music21’s _articulationFromAttr: the names of music21’s classes for the marks one artic value names.
fresh_uuid
A random version-4 UUID, as music21 names a slur written apart from its notes with uuid4(); count keeps two in one read apart.
gestural_accidental
music21’s _accidGesFromAttr: the accidental an accid.ges names.
octave_shift
music21’s _getOctaveShift: the octaves a clef’s dis and dis.place move it by, down negative.
quarter_length
music21’s _qlDurationFromAttr: the quarter length of a dur, NO_DURATION where there is none.
sharps_of
music21’s _sharpsFromAttr: the sharps a key.sig counts, flats negative.
syllable
music21’s sylFromElement before it makes the lyric: a syllable’s text with what joins it to its neighbours, and its place in its word, none where it names no wordpos.
tie_type
music21’s _tieFromAttr: the part of a tie a tie names.
translate
music21’s _attrTranslator: what attribute stands for in table, refused by the name of the attribute it was the value of.
transposition_steps
music21’s _transpositionFromAttrs before it makes the interval: the generic interval and the semitones of a trans.diat and trans.semi.
tremolo_marks
The tremolo marks a <bTrem>’s unitdur names, none for a value music21 has none for.
unexpected
music21’s _UNEXPECTED_ATTR_VALUE: what music21 says of an attribute value it has no meaning for.
without_hash
music21’s removeOctothorpe: an xml:id reference without its #.
written_accidental
music21’s _accidentalFromAttr: the accidental a written accid names, none where there is no accid.