tempotools.integer_tempo_to_multiplier_tempo_pairs

abjad.tools.tempotools.integer_tempo_to_multiplier_tempo_pairs.integer_tempo_to_multiplier_tempo_pairs(integer_tempo, maximum_numerator=None, maximum_denominator=None)[source]

New in version 2.0.

Return all multiplier, tempo pairs possible from integer_tempo.

Tempi must be no less than integer_tempo / 2 and not greater than 2 * integer_tempo:

abjad> from abjad.tools import tempotools
abjad> pairs = tempotools.integer_tempo_to_multiplier_tempo_pairs(58, 8, 8)
abjad> for pair in pairs:
...     pair
...
(Fraction(1, 2), Fraction(29, 1))
(Fraction(1, 1), Fraction(58, 1))
(Fraction(3, 2), Fraction(87, 1))
(Fraction(2, 1), Fraction(116, 1))

Return list.

This Page