Generate a train of repeating notes, all of the same pitch,
equal to total duration total_duration,
each with written duration equal to written_duration,
under prolation context equal to prolation.
Fill any remaining duration at the end of the train
with a series of notes with smaller written duration.
Set prolation when constructing a note train within
a nonbinary measure.