From 6151ee949fc25d87fc3d1c553fb27660dcb3571a Mon Sep 17 00:00:00 2001 From: melkisedeath Date: Mon, 25 Sep 2023 17:08:10 +0200 Subject: [PATCH] Added tick validation in the loop. --- partitura/performance.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/partitura/performance.py b/partitura/performance.py index 543176fc..4348e32b 100644 --- a/partitura/performance.py +++ b/partitura/performance.py @@ -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: