Expand description
Measures, ties, rests, voices, beams and stems worked out for a score
that does not say them.
Working out what a score leaves unsaid: music21’s stream.makeNotation.
What a reader of another format needs is here: cutting a line into measures, tying what runs past a barline, filling measures out with rests, putting overlapping notes in voices, moving notes onto a grid, beaming the notes of each measure by its meter and pointing the stems of each beamed group one way.
make_notation is the whole of it in music21’s order, for a score
that says only what sounds: measures, accidentals, ties, tuplets
completed and bracketed, beams. split_at_durations cuts a length no
single note value writes into values that do.
Constants§
- QUANTIZATION_
DIVISORS - The divisions of a quarter music21 quantizes to unless told otherwise: sixteenths and triplet eighths.
Functions§
- consolidate_
completed_ tuplets - Joins a run of tied notes, or of rests, that fills one tuplet exactly
into one note of the tuplet’s whole length: music21’s
consolidateCompletedTupletswithonlyIfTied, on one line. Whether anything was joined. - make_
accidentals - Decides which accidentals are written, measure by measure: music21’s
makeAccidentalson a part. - make_
beams - Beams the notes of every measure of a part by the meter in force, and
points the stems of each beamed group one way: music21’s
makeBeams. - make_
measures - Cuts a stream into measures by the meters it holds: music21’s
makeMeasures. - make_
measures_ by make_measuresby meters given rather than found: music21’smakeMeasureswith ameterStream. Each meter is given with the offset it takes over at; with none given the stream’s own are used.- make_
notation - Works out what a score leaves unsaid, as music21’s
makeNotationdoes, changing the stream in place. - make_
ornamental_ accidentals - Decides whether each accidental this note’s ornaments imply is shown,
and writes it onto the ornament: music21’s
makeOrnamentalAccidentals. - make_
rests - Fills every measure of a part with rests up to its bar’s length, its
voices too: music21’s
makeRestswithfillGaps=TrueandtimeRangeFromBarDuration=True. - make_
ties - Cuts every note that runs past its barline and ties the pieces, the
second going to the start of the next measure: music21’s
makeTies. - make_
tuplet_ brackets - Marks the first and last of each run of tuplets in a line of notes as
where its bracket starts and stops: music21’s
makeTupletBrackets. - make_
voices - Puts a measure’s notes into voices where they overlap: music21’s
makeVoiceswithfillGaps=False. - op_frac
- Snaps an offset as music21’s
opFracdoes, to the nearest fraction with a denominator up to 65535, so that three triplets end on the beat. A negative offset is snapped as its size is. - quantize
- Moves every offset and length in a stream onto the nearest place a
quarter divides into: music21’s
quantize, for the stream’s own elements. - realize_
ornaments - Every ornament the stream carries played out, in a stream of its own:
music21’s
stream.makeNotation.realizeOrnaments. - set_
stem_ direction_ for_ beam_ groups - Points the stems of each beamed group the way its first and last pitches
lie about the middle line of the clef in force: music21’s
setStemDirectionForBeamGroups. - split_
at_ durations - Cuts every note, chord and rest whose length no single written value
writes into pieces that each are one, tied: music21’s
splitAtDurationswithrecurse. - split_
elements_ to_ complete_ tuplets - Cuts the note or rest after an unfinished tuplet where that finishes it:
music21’s
splitElementsToCompleteTuplets, on one line.