Skip to main content

Module translate

Module translate 

Source
Expand description

ABC tokens turned into a score: music21’s abcFormat.translate.

The tokens super::step cuts and processes are read off voice by voice and measure by measure into parts, then a score, or an opus of scores. The order and the oddities are music21’s throughout, since the score it makes is what this one is held to.

Structs§

OpenEnding
An ending a part opens and never closes: music21 leaves its RepeatBracket in the spanner bundle, for the part after.
ReBarred
A part cut by re_bar_part, and where each of its leaves came from.
ReadPart
A part read by part_stream, and the endings it left open.

Functions§

from_abc
Reads ABC text into a score: music21’s converter.parse for the format.
from_abc_number
Reads one tune out of ABC text holding several, by its X: reference number: music21’s converter.parse(..., number=n).
lyric_syllables
music21’s addABCLyrics, as places: each syllable of a w: line and which of targets notes since the line before it is sung to. * and - skip a note; syllables past the last note are dropped.
named_version
The ABC version an I:abc-version 2.1 line of the handler’s names, the last where there are several: what music21’s abcToStreamScore sets on the handler.
note_of
music21’s parseABCNote, for one token alone: the chord symbol written over it and the note, chord or rest it stands for, either of which can be missing.
opus_of
music21’s abcToStreamOpus: an opus of the handler’s tunes in the order of their numbers, or of the one numbered number where there is one. A handler of one tune is an opus of one score.
part_stream
music21’s abcToStreamPart: the tokens of one voice, header included, as a part holding the spanners it starts, and the endings it leaves open. spanners are those Handler::process handed back.
re_bar_part
music21’s reBar over a part: each measure holding more than its bar cut in two, as in reading a tune. The part’s other elements are kept; its spanners are left to the caller, which knows its notes by ReBarred::origins.
score_of
music21’s abcToStreamScore: a processed tune as a score of a part per voice, with its metadata. spanners are those Handler::process handed back.