Skip to content

Commit

Permalink
Add pedal warning (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
loubbrad authored Mar 13, 2024
1 parent db53a36 commit 2acfb0f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions aria/data/midi.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,7 @@ def resolve_pedal(self):
"""Resolve pedal - extend note offsets and resolve note overlaps"""
# If has been already resolved, we don't recalculate
if self.pedal_resolved == True:
return self

assert self.pedal_resolved == False, "Internal error"
print("Pedal has already been resolved")

# Organize note messages by channel
note_msgs_c = defaultdict(list)
Expand Down

0 comments on commit 2acfb0f

Please sign in to comment.