sequencetools.split_sequence_extended_to_weights_with_overhang

abjad.tools.sequencetools.split_sequence_extended_to_weights_with_overhang.split_sequence_extended_to_weights_with_overhang(sequence, weights)[source]

New in version 2.0.

Split sequence extended to weights with overhang:

abjad> from abjad.tools import sequencetools
abjad> sequencetools.split_sequence_extended_to_weights_with_overhang([1, 2, 3, 4, 5], [7, 7, 7])
[[1, 2, 3, 1], [3, 4], [1, 1, 2, 3], [4, 5]]

Return new object of sequence type.

This Page