Fixed some bugs and added new tests

New test_multi_03 can be used to test multiple variables at once. Based on new collect function that can be used to collect n variables from parsed Ziffers.
This commit is contained in:
2023-03-05 13:31:52 +02:00
parent 004578e56e
commit ea0e9ae0cd
8 changed files with 58 additions and 25 deletions

View File

@ -133,6 +133,10 @@ class Event(Item):
duration: float = field(default=None)
def get_duration(self):
"""Getter for duration"""
return self.duration
@dataclass
class Rest(Event):
@ -202,10 +206,6 @@ class Pitch(Event):
"""Getter for pitche"""
return self.pitch_class
def get_duration(self):
"""Getter for duration"""
return self.duration
def update_note(self, force: bool = False):
"""Update note if Key, Scale and Pitch-class are present"""
if (