Skip to content

Commit

Permalink
slight optimization to recurseGetTreeByClass
Browse files Browse the repository at this point in the history
  • Loading branch information
TimFelixBeyer authored Jun 26, 2023
1 parent 971ac50 commit 17c537c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions music21/tree/fromStream.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,8 @@ def recurseGetTreeByClass(
if classList and element.classSet.isdisjoint(classList):
continue

endTime = flatOffset + element.duration.quarterLength

if useTimespans:
endTime = flatOffset + element.duration.quarterLength
pitchedTimespan = spans.PitchedTimespan(
element=element,
parentage=tuple(reversed(currentParentage)),
Expand Down

0 comments on commit 17c537c

Please sign in to comment.