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')
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
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
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
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
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 = ""