fill_measures_with_minimal_number_of_notes

scoretools.fill_measures_with_minimal_number_of_notes(argument, decrease_durations_monotonically=True, iterctrl=None)

Fills measures in argument with minimal number of notes that decrease durations monotonically:

>>> measure = Measure((5, 18), [], implicit_scaling=True)
>>> scoretools.fill_measures_with_minimal_number_of_notes(
...     measure, decrease_durations_monotonically=True)

Fill measures in argument with minimal number of notes that increase durations monotonically:

>>> measure = Measure((5, 18), [])
>>> measure.implicit_scaling = True
>>> scoretools.fill_measures_with_minimal_number_of_notes(
...     measure, decrease_durations_monotonically=False)

Returns none.