select_all

patterntools.select_all(inverted=None)

Makes pattern that matches all indices.

Selects all divisions for tie creation:

>>> pattern = patterntools.select_all()
>>> print(format(pattern))
patterntools.Pattern(
    indices=[0],
    period=1,
    )
>>> maker = rhythmmakertools.NoteRhythmMaker(
...     tie_specifier=rhythmmakertools.TieSpecifier(
...         tie_across_divisions=pattern,
...         use_messiaen_style_ties=True,
...         ),
...     )
>>> divisions = [(7, 16), (3, 8), (7, 16), (3, 8)]
>>> music = maker(divisions)
>>> lilypond_file = rhythmmakertools.make_lilypond_file(
...     music,
...     divisions,
...     )
>>> show(lilypond_file) 

Returns pattern.