예제 #1
0
 def __init__(self, bdelta, bstatus, blength, bdata):
     super().__init__(bdelta, bstatus, blength, bdata)
     if bstatus != b'\xFF':
         raise IncorrectStatusException(
             "Invalid status: {:2x} for meta event".format(bstatus))
     self.microseconds = None
     self.microseconds = int.from_bytes(self.bdata[1:], byteorder='big')
예제 #2
0
 def __init__(self, bdelta, bstatus, blength, bdata):
     super().__init__(bdelta, bstatus, blength, bdata)
     if bstatus != b'\xFF':
         raise IncorrectStatusException(
             "Invalid status: {:2x} for meta event".format(bstatus))
     self.id: str = None
     self.id_len: int = None
예제 #3
0
 def __init__(self, bdelta, bstatus, blength, bdata):
     super().__init__(bdelta, bstatus, blength, bdata)
     if bstatus != b'\xFF':
         raise IncorrectStatusException(
             "Invalid status: {:2x} for meta event".format(bstatus))
     self.numerator: int = None
     self.denominator: int = None
     self.clocks_per_tick: int = None
     self.notes_per_clock: int = None
예제 #4
0
 def __init__(self, bdelta, bstatus, blength, bdata):
     super().__init__(bdelta, bstatus, blength, bdata)
     if bstatus != b'\xFF':
         raise IncorrectStatusException(
             "Invalid status: {:2x} for meta event".format(bstatus))
     self.hours: int = None
     self.mins: int = None
     self.secs: int = None
     self.frames: int = None
     self.fract_frames: int = None
예제 #5
0
 def __init__(self, bdelta, bstatus, blength, bdata):
     super().__init__(bdelta, bstatus, blength, bdata)
     if bstatus != b'\xFF':
         raise IncorrectStatusException("Invalid status: {:2x} for meta event".format(bstatus))
     self.minor_flag: bool = None
     self.key = None
예제 #6
0
 def __init__(self, bdelta, bstatus, blength, bdata):
     super().__init__(bdelta, bstatus, blength, bdata)
     if bstatus != b'\xFF':
         raise IncorrectStatusException(
             "Invalid status: {:2x} for meta event".format(bstatus))
     self.track_name = ""