componenttools.partition_components_cyclically_by_prolated_durations_ge_with_overhang

abjad.tools.componenttools.partition_components_cyclically_by_prolated_durations_ge_with_overhang.partition_components_cyclically_by_prolated_durations_ge_with_overhang(components, prolated_durations)[source]

New in version 1.1.

Partition components cyclically by prolated_durations greater than or equal, with overhang:

abjad> staff = Staff(Measure((2, 8), notetools.make_repeated_notes(2)) * 4)
abjad> pitchtools.set_ascending_named_diatonic_pitches_on_nontied_pitched_components_in_expr(staff)
abjad> f(staff)
\new Staff {
    {
        \time 2/8
        c'8
        d'8
    }
    {
        \time 2/8
        e'8
        f'8
    }
    {
        \time 2/8
        g'8
        a'8
    }
    {
        \time 2/8
        b'8
        c''8
    }
}
abjad> groups = componenttools.partition_components_cyclically_by_prolated_durations_ge_with_overhang(staff.leaves, [Duration(3, 16), Duration(1, 16)])
abjad> for group in groups:
...     group
...
[Note("c'8"), Note("d'8")]
[Note("e'8")]
[Note("f'8"), Note("g'8")]
[Note("a'8")]
[Note("b'8"), Note("c''8")]

Return list of lists.

Note

function works not just on components but on any durated objects including spanners.

This Page