make_repeated_notes_with_shorter_notes_at_end

scoretools.make_repeated_notes_with_shorter_notes_at_end(pitch, written_duration, total_duration, prolation=1)

Makes repeated notes with pitch and written_duration summing to total_duration under prolation.

>>> arguments = [0, Duration(1, 16), Duration(1, 4)]
>>> notes = scoretools.make_repeated_notes_with_shorter_notes_at_end(*arguments)
>>> voice = Voice(notes)

Fill power-of-two remaining duration with power-of-two notes of lesser written duration:

>>> arguments = [0, Duration(1, 16), Duration(9, 32)]
>>> notes = scoretools.make_repeated_notes_with_shorter_notes_at_end(*arguments)
>>> voice = Voice(notes)

Fill non-power-of-two remaining duration with ad hoc tuplet:

>>> arguments = [0, Duration(1, 16), Duration(4, 10)]
>>> notes = scoretools.make_repeated_notes_with_shorter_notes_at_end(*arguments)
>>> voice = Voice(notes)

Set prolation when making notes in a measure with a non-power-of-two denominator.

Returns list of components.