silence_all

rhythmmakertools.silence_all(inverted=None, use_multimeasure_rests=None)

Makes silence that matches all indices.

Silences all divisions:

>>> mask = rhythmmakertools.silence_all()
>>> f(mask)
rhythmmakertools.SilenceMask(
    pattern=patterntools.Pattern(
        indices=[0],
        period=1,
        ),
    )
>>> rhythm_maker = rhythmmakertools.NoteRhythmMaker(
...     division_masks=[mask],
...     )
>>> divisions = [(7, 16), (3, 8), (7, 16), (3, 8)]
>>> selections = rhythm_maker(divisions)
>>> lilypond_file = rhythmmakertools.make_lilypond_file(
...     selections,
...     divisions,
...     )
>>> show(lilypond_file) 

Silences all divisions with multimeasure rests:

>>> mask = rhythmmakertools.silence_all(
...     use_multimeasure_rests=True,
...     )
>>> rhythm_maker = rhythmmakertools.NoteRhythmMaker(
...     division_masks=[mask],
...     )
>>> divisions = [(7, 16), (3, 8), (7, 16), (3, 8)]
>>> selections = rhythm_maker(divisions)
>>> lilypond_file = rhythmmakertools.make_lilypond_file(
...     selections,
...     divisions,
...     )
>>> show(lilypond_file) 

Returns silence mask.