Skip to content

Commit

Permalink
OffsetHierarchyFilter was a little inaccurate when tuplets were invol…
Browse files Browse the repository at this point in the history
…ved. Added missing opFrac().
  • Loading branch information
gregchapman-dev committed May 8, 2024
1 parent 85dcabe commit 57ed01f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion music21/stream/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ def __call__(self, e, iterator=None):
if not hasattr(iterator, 'iteratorStartOffsetInHierarchy'):
raise FilterException('Can only run OffsetHierarchyFilter on a RecursiveIterator')

offset = s.elementOffset(e) + iterator.iteratorStartOffsetInHierarchy
offset = opFrac(s.elementOffset(e) + iterator.iteratorStartOffsetInHierarchy)
return self.isElementOffsetInRange(e, offset, stopAfterEnd=False)


Expand Down

0 comments on commit 57ed01f

Please sign in to comment.