You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This output (with pattern object) is statal. This is correct. Selector selects logical ties 6 and 7:
staff = abjad.Staff("c'8 d' ~ { d' e' r f'~ } f' r")
logical_ties = abjad.select(staff).logical_ties()
previous = len(logical_ties)
pattern = abjad.index([4, 5, 6, 7])
result = abjad.select(staff, previous=previous)
result.logical_ties()[pattern]
Selection([LogicalTie([Note("c'8")]), LogicalTie([Note("d'8"), Note("d'8")])])
This output (with slice) is not statal. This is incorrect. Selector selects logical ties 4 and 5:
staff = abjad.Staff("c'8 d' ~ { d' e' r f'~ } f' r")
logical_ties = abjad.select(staff).logical_ties()
previous = len(logical_ties)
result = abjad.select(staff, previous=previous)
result = result.logical_ties()[4:8]
Selection([LogicalTie([Note("f'8"), Note("f'8")]), LogicalTie([Rest('r8')])], previous=6)
Allow for statal selectors with integer and slice indexing
The text was updated successfully, but these errors were encountered:
Write statal doctests:
Generalize statal selectors:
This output (with pattern object) is statal. This is correct. Selector selects logical ties 6 and 7:
This output (with slice) is not statal. This is incorrect. Selector selects logical ties 4 and 5:
The text was updated successfully, but these errors were encountered: