Skip to main content

Module spanner

Module spanner 

Source
Expand description

Marks joining several notes: slurs. Spanners: marks that join several notes, music21’s spanner module.

music21 keeps a spanner as an object holding the very notes it joins. A stream here owns what it holds, so a spanner names its notes by where they stand instead: by their positions in Stream::leaves of the stream the spanner belongs to, first to last.

Structs§

Glissando
What a glissando says beside the notes it joins: how it is played and the words written along it, music21’s slideType and label.
LineEnds
How a line’s ends are drawn: music21’s startTick, endTick, startHeight and endHeight.
OctaveShift
How far and which way an octave line moves the notes under it: music21’s Ottava.type.
Pedal
A pedal mark’s pedal and how it is drawn: music21’s pedalType, pedalForm and abbreviated, the first two of which a score need not say.
PedalObject
A moment inside a held pedal – a bounce, or a gap in its line – which stands in the stream at its own offset and is joined by the pedal mark it belongs to: music21’s PedalObject.
Spanner
A mark joining several notes: music21’s Spanner.

Enums§

LineEnd
The tick at one end of a line.
PedalForm
How a pedal mark is drawn: music21’s PedalForm.
PedalObjectKind
Which of music21’s pedal objects a PedalObject is.
PedalType
Which pedal a pedal mark holds down: music21’s PedalType.
SlideType
How a glissando is played: music21’s Glissando.slideType.
SpannerKind
Which of music21’s spanner classes a spanner is.