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: anarticand the name of music21’s class for it. - BARLINES
- music21’s
_BAR_ATTR_DICT: arightorrendand the barline style it names. Repeats, which start withrpt, are made apart. - COMPOUND_
ARTICULATIONS - The
articvalues that are two marks, which music21 makes apart from its table. - DURATIONS
- music21’s
_DUR_ATTR_DICT: adurand its quarter length. - GESTURAL_
ACCIDENTALS - music21’s
_ACCID_GES_ATTR_DICT: a soundingaccid.gesand 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
rightstarts with. - TREMOLO_
MARKS - music21’s
_MEI_UNITDUR_TO_TREMOLO_MARKS: a<bTrem>’sunitdurand the marks its tremolo is drawn with. - WRITTEN_
ACCIDENTALS - music21’s
_ACCID_ATTR_DICT: a writtenaccidand the accidental it names.
Functions§
- articulation_
classes - music21’s
_articulationFromAttr: the names of music21’s classes for the marks onearticvalue names. - fresh_
uuid - A random version-4 UUID, as music21 names a slur written apart from its
notes with
uuid4();countkeeps two in one read apart. - gestural_
accidental - music21’s
_accidGesFromAttr: the accidental anaccid.gesnames. - octave_
shift - music21’s
_getOctaveShift: the octaves a clef’sdisanddis.placemove it by, down negative. - quarter_
length - music21’s
_qlDurationFromAttr: the quarter length of adur,NO_DURATIONwhere there is none. - sharps_
of - music21’s
_sharpsFromAttr: the sharps akey.sigcounts, flats negative. - syllable
- music21’s
sylFromElementbefore 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 nowordpos. - tie_
type - music21’s
_tieFromAttr: the part of a tie atienames. - translate
- music21’s
_attrTranslator: whatattributestands for intable, refused by the name of the attribute it was the value of. - transposition_
steps - music21’s
_transpositionFromAttrsbefore it makes the interval: the generic interval and the semitones of atrans.diatandtrans.semi. - tremolo_
marks - The tremolo marks a
<bTrem>’sunitdurnames, 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: anxml:idreference without its#. - written_
accidental - music21’s
_accidentalFromAttr: the accidental a writtenaccidnames, none where there is noaccid.