durtools.agglomerate_by_prolation

abjad.tools.durtools.agglomerate_by_prolation(durations)

Given a list of tuplet duration tokens L = [d1, d2, d3, ..., dn], this function returns a list L’ = [[d1, ..., dp], [dp+1, ..., dq], ..., [dq+1, ..., dn]] of sublists of L, where each sublist is a group of consecutive durations with the same implied prolation.

Example:

L = [(1, 4), (1, 8), (1, 3), (1, 6), (1, 4)] L’= [[(1, 4), (1, 8)], [(1, 3), (1, 6)], [(1, 4)]]

Previous topic

divide.tie_chain

Next topic

durtools.denominator_to_multiplier

This Page