fill_measures_in_expr_with_minimal_number_of_notes

scoretools.fill_measures_in_expr_with_minimal_number_of_notes(expr, decrease_durations_monotonically=True, iterctrl=None)

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

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

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

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

Returns none.