Expand description
RomanText’s tokens as music21’s romanText.rtObjects reads them: a
tagged line, a measure line and the atoms of a measure, each sorted by
the patterns music21 sorts them by.
The reader in this crate’s super module reads a whole document into
a score; these are the single steps, for those who look at the tokens
themselves.
Structs§
- Measure
Line - A measure line read as music21’s
RTMeasurereads one.
Enums§
- Atom
Kind - What one word of a measure is: music21’s subclasses of
RTAtom. - Tag
- What a tagged line’s tag says it is: music21’s
RTTagged.isComposer,isTitleand the rest.
Functions§
- atoms
- The atoms of a measure’s data, each word with what it is: music21’s
RTHandler.tokenizeAtoms. A lone=ends them, since what follows it is copied. - beat_
float_ or_ frac - A beat atom’s beat, independent of any meter: music21’s
RTBeat.getBeatFloatOrFrac.b1.66is beat one and two thirds, and a third part is that much of the second’s denominator:b1.66.5is half a third further on. - copy_
target - The measures a copying measure line copies, from its data: music21’s
RTMeasure.getCopyTarget. - header_
end - The index of a document’s first measure line, where its header ends.
- key_
signature_ sharps - The sharps a key signature atom gives, negative for flats:
KS-2is two flats. - measure_
number_ data - A measure number, or the two of a range, and the repeat letter of each:
music21’s
RTMeasure._getMeasureNumberData. - measure_
tag_ length - How much of a line its measure tag takes,
m3-4ofm3-4 = m1-2, or nothing where it starts with none. - optional_
key_ name - The key an optional key’s start or end names, as music21 writes a key:
?(Bb:namesB-. - read_
measure_ line - A measure line’s parts.
- split_
tagged - A tagged line’s tag and data, either side of its first colon and stripped; a line without one is all data.
- tag_of
- The tag a line’s tag names, any case, or nothing for another.