Skip to content

Commit

Permalink
Revert unrelated changes
Browse files Browse the repository at this point in the history
  • Loading branch information
TimFelixBeyer committed Mar 4, 2024
1 parent 812016a commit c7c439b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion music21/analysis/reduceChords.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ def procedure(timespan):
)
print(msg)
# raise ChordReducerException(msg)
offset = min(offset, previousTimespan.endTime)
offset = max(offset, previousTimespan.endTime)
scoreTree.removeTimespan(group[0])
subtree.removeTimespan(group[0])
newTimespan = group[0].new(offset=offset)
Expand Down
2 changes: 1 addition & 1 deletion music21/analysis/reduceChordsOld.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def reduceMeasureToNChords(self,
4.0
'''
from music21 import note
if not measureObj.isFlat:
if measureObj.isFlat is False:
mObj = measureObj.flatten().notes.stream()
else:
mObj = measureObj.notes.stream()
Expand Down
5 changes: 4 additions & 1 deletion music21/braille/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,10 @@ def canAppend(self, text, addSpace=True):
'''
searchLocation = max(self.highestUsedLocation, self.textLocation)
addSpaceAmount = 1 if addSpace else 0
return (searchLocation + len(text) + addSpaceAmount) <= self.lineLength
if (searchLocation + len(text) + addSpaceAmount) > self.lineLength:
return False
else:
return True

def canInsert(self, textLocation, text):
'''
Expand Down

0 comments on commit c7c439b

Please sign in to comment.