Expand description
Rhythmic duration primitives.
Structs§
- Duration
- Rhythmic duration measured in quarter lengths.
- Duration
Tuple - One written value of a duration and how long it lasts: music21’s
DurationTuple. - Grace
- How a grace note is written and played: what music21’s
GraceDurationcarries beside its written values. - Tuplet
- A length written as a tuplet:
actualnotes in the time ofnormal, each side optionally counted in a written value. - Tuplet
Notation - How a tuplet is written on the page, as music21 starts one: no bracket placed yet, drawn as a bracket above the notes, with the number of notes shown.
Enums§
- Duration
Type - A note-value name, as music21’s
duration.typeToDurationdefines them. - Tuplet
Bracket - How a tuplet’s bracket is drawn: music21’s
bracket,True,Falseor'slur'. - Tuplet
Show - Which of a tuplet’s counts is shown and how: music21’s
tupletActualShowandtupletNormalShow. - Tuplet
Type - Where a tuplet’s bracket falls over its notes: music21’s
Tuplet.type.
Functions§
- quarter_
conversion - The written note values a length is made of and the tuplet, if any, they
are written inside: music21’s
quarterConversion. - quarter_
length_ to_ closest_ type - Returns the note-value type closest to a quarter length, and whether it is
exact, as music21’s
quarterLengthToClosestTypedoes: a length between two types reports the longer one, so a triplet quarter is an inexact eighth. - quarter_
length_ to_ non_ power_ of_ 2_ tuplet - The one enormous tuplet music21 falls back on for a length no tie of
written values reaches: its
quarterLengthToNonPowerOf2Tuplet. - quarter_
length_ to_ tuplet - The tuplets a length can be written as, shortest note value first:
music21’s
quarterLengthToTuplet, stopping aftermax_to_returnof them.