Skip to main content

Module expressions

Module expressions 

Source
Expand description

Ornaments and what they play. Ornaments: the part of music21’s expressions module that changes what is played.

A mordent, a trill, a turn, an appoggiatura or a tremolo is written as one note and played as several. Each ornament here knows the note it decorates only through the pitch and the key signature it is given: from those it works out its ornamental pitches – the neighbour a step above or below, spelled by the key unless the ornament carries an accidental of its own – and realizes the note as the notes actually played.

Structs§

Fermata
A pause of unmeasured length over a note: music21’s Fermata.
Ornament
An ornament.
Realization
A note realized as an ornament plays it: the notes before what is left of it, what is left (nothing where the ornament takes the whole note, as a trill does), and the notes after.
RehearsalMark
A letter or number marking a place to rehearse from: music21’s RehearsalMark.
TextExpression
Words written over or under the staff: music21’s TextExpression, a score’s dolce or cresc. or a movement’s Grave where it is not read as a tempo.

Enums§

ArpeggioType
How a chord’s notes are spread: music21’s ArpeggioMark.type.
Expression
Something written on a note that is not its pitch or length: an entry of music21’s GeneralNote.expressions.
FermataType
Which way up a fermata is drawn: music21’s Fermata.type.
OrnamentDelay
When a turn starts: music21’s OrnamentDelay.
OrnamentKind
One of music21’s ornament classes.
TurnNote
Which neighbour of a turn.

Functions§

realize_ornaments
Every ornament on note played in turn: music21’s expressions.realizeOrnaments, where each ornament realizes what the one before left of the note and an ornament that takes the whole note ends the walk.