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§

MetronomeMark
A metronome marking: a beats-per-minute number, a tempo word, and the note value the number counts.

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.