notetools.make_repeated_notes_with_shorter_notes_at_end

abjad.tools.notetools.make_repeated_notes_with_shorter_notes_at_end.make_repeated_notes_with_shorter_notes_at_end(pitch, written_duration, total_duration, prolation=Duration(1, 1))[source]

Make repeated notes with pitch and written_duration summing to total_duration under prolation:

abjad> voice = Voice(notetools.make_repeated_notes_with_shorter_notes_at_end(0, Duration(1, 16), Duration(4, 16)))
abjad> f(voice)
\new Voice {
    c'16
    c'16
    c'16
    c'16
}

Fill binary remaining duration with binary notes of lesser written duration:

abjad> voice = Voice(notetools.make_repeated_notes_with_shorter_notes_at_end(0, Duration(1, 16), Duration(9, 32)))
abjad> f(voice)
\new Voice {
    c'16
    c'16
    c'16
    c'16
    c'32
}

Fill nonbinary remaining duration with ad hoc tuplet:

abjad> voice = Voice(notetools.make_repeated_notes_with_shorter_notes_at_end(0, Duration(1, 16), Duration(4, 10)))
abjad> f(voice)
\new Voice {
    c'16
    c'16
    c'16
    c'16
    c'16
    c'16
    \times 4/5 {
        c'32
    }
}

Set prolation when constructing notes in a nonbinary measure.

Return list of newly constructed components.

Changed in version 2.0: renamed construct.note_train() to notetools.make_repeated_notes_with_shorter_notes_at_end().

This Page