Skip to main content

Module placement

Module placement 

Source
Expand description

Where music21’s NoteWorthy translator places notes, rests and marks in a measure, and how it joins slurs and ties: the one implementation, generic over what the measures are.

The crate’s reader places into measures of its own; the wheel’s translator places into Python streams a caller may hand it. Both implement Placing, and Placement keeps the state between lines: the position in the measure, the slurs left open and the ties begun.

Structs§

OpenSlur
A slur begun and not yet joined: where it starts, the measure it starts in, where that note ends and its place in its group.
Placement
The translator’s placing state: music21’s positionMeasure and measurePosition, openSlurs and tiedSteps.
TiedStep
A tie begun on a staff step: the measure it was begun in, none where carried over a barline, and where the tied note ends.

Traits§

Placing
What a measure of either kind does for the translator.