divide.pair

abjad.tools.divide.pair(l, (n, d), together=False)

Divide duration pair (n, d) according to list l. Note that denominator d is interpreter as the basic tuplet unit. This explains why the function accepts a pair rather than a Rational.

>>> divide.pair([1], (7, 16))
(c'4..)
>>> divide.pair([1, 2], (7, 16))
(6:7, c'8, c'4)
>>> divide.pair([1, 2, 4], (7, 16))
(c'16, c'8, c'4)
>>> divide.pair([1, 2, 4, 1], (7, 16))
(8:7, c'16, c'8, c'4, c'16)
>>> divide.pair([1, 2, 4, 1, 2], (7, 16))
(10:7, c'16, c'8, c'4, c'16, c'8)
>>> divide.pair([1, 2, 4, 1, 2, 4], (7, 16))
(c'32, c'16, c'8, c'32, c'16, c'8)

Previous topic

divide.leaf

Next topic

divide.tie_chain

This Page