Skip to main content

Module duration

Module duration 

Source
Expand description

Rhythmic duration primitives.

Structs§

Duration
Rhythmic duration measured in quarter lengths.
Tuplet
A length written as a tuplet: actual notes of one written value in the time of normal of them.

Enums§

DurationType
A note-value name, as music21’s duration.typeToDuration defines them.

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 quarterLengthToClosestType does: 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 after max_to_return of them.