Skip to main content

Module tempo

Module tempo 

Source
Expand description

Metronome marks and tempo-word conventions. Metronome marks, a port of the stream-free part of music21’s tempo.

Structs§

MetricModulation
A change of tempo written as an equation between two metronome marks: music21’s MetricModulation.
MetronomeMark
A metronome marking: a beats-per-minute number, a tempo word, and the note value the number counts.
TempoText
A tempo said in words and not in numbers: music21’s TempoText.

Enums§

ModulationSide
Which side of a MetricModulation something is on: the mark in force before it, or the mark after. music21 calls them 'left' and 'right'.

Constants§

DEFAULT_TEMPO_VALUES
The tempo words music21 knows and the beats per minute each implies, in music21’s order.

Functions§

convert_tempo_by_referent
Converts a tempo counted in one note value into the same tempo counted in another, both given in quarter lengths.
default_number_for_text
Returns the beats per minute music21 pairs with a tempo word, matching the whole text case-insensitively first and any single word of it second.
default_text_for_number
Returns the tempo word music21 pairs with a beats-per-minute value, when one lies within two beats of it. Ties go to the lower value, then the alphabetically earlier word, as music21 sorts them.
interpolate_elements
Carries what lies between two points of one stream into another, keeping each thing’s place between them: music21’s interpolateElements.
interpolated_offset
Where a thing standing at offset in the source lands in the destination, the same proportion of the way between the two points: the arithmetic of interpolate_elements, for a caller that moves things of its own.
is_common_tempo_text
Whether text reads as a tempo, as TempoText::is_common_tempo_text asks it.