make_rests

scoretools.make_rests(durations, decrease_durations_monotonically=True, tie_parts=False)

Make rests.

Make rests and drecrease durations monotonically:

>>> scoretools.make_rests(
...     [(5, 16), (9, 16)],
...     decrease_durations_monotonically=True,
...     )
Selection([Rest('r4'), Rest('r16'), Rest('r2'), Rest('r16')])

Makes rests and increase durations monotonically:

>>> scoretools.make_rests(
...     [(5, 16), (9, 16)],
...     decrease_durations_monotonically=False,
...     )
Selection([Rest('r16'), Rest('r4'), Rest('r16'), Rest('r2')])

Make tied rests:

>>> voice = Voice(scoretools.make_rests(
...     [(5, 16), (9, 16)],
...     tie_parts=True,
...     ))
>>> show(voice) 

Returns list of rests.