diff --git a/msctPkgver/__init__.py b/msctPkgver/__init__.py index c95942b..6087cd8 100644 --- a/msctPkgver/__init__.py +++ b/msctPkgver/__init__.py @@ -7,7 +7,7 @@ # 若需转载或借鉴 许可声明请查看仓库目录下的 Lisence.md -__version__ = '0.2.0' +__version__ = '0.2.0.1' __all__ = [] __author__ = (('金羿', 'Eilles Wan'), ('诸葛亮与八卦阵', 'bgArray'), ('鸣凤鸽子', 'MingFengPigeon')) diff --git a/msctPkgver/main.py b/msctPkgver/main.py index 47ce52d..65250fe 100644 --- a/msctPkgver/main.py +++ b/msctPkgver/main.py @@ -636,6 +636,7 @@ class midiConvert: if msg.time != 0: try: microseconds += msg.time * tempo / self.midi.ticks_per_beat + # print(microseconds) except NameError: raise NotDefineTempoError("计算当前分数时出错 未定义参量 Tempo") @@ -665,7 +666,7 @@ class midiConvert: msg.type == "note_off" ): channels[msg.channel].append(("NoteE", msg.note, microseconds)) - + """整合后的音乐通道格式 每个通道包括若干消息元素其中逃不过这三种: @@ -706,7 +707,7 @@ class midiConvert: soundID, _X = self.__bitInst2IDwithX(InstID) else: soundID, _X = self.__Inst2soundIDwithX(InstID) - score_now = round(msg[-1] / float(speed) / 50000) + score_now = round(msg[-1] / float(speed) / 50) maxScore = max(maxScore, score_now) nowTrack.append(