Skip to content

Commit

Permalink
Added tick validation in the loop.
Browse files Browse the repository at this point in the history
  • Loading branch information
manoskary committed Sep 25, 2023
1 parent 702adf7 commit 6151ee9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion partitura/performance.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,10 @@ def _validate_values(self, d):
self._validate_velocity(value)
elif key == "sound_off":
self._validate_sound_off(value)

elif key == "note_on_tick":
self._validate_note_on_tick(value)
elif key == "note_off_tick":
self._validate_note_off_tick(value)

def _validate_sound_off(self, value):
if self.get("note_off", -1) < 0:
Expand Down

0 comments on commit 6151ee9

Please sign in to comment.