mirror of
https://github.com/TriM-Organization/Musicreater.git
synced 2025-02-12 13:50:28 +08:00
紧急修复bug
This commit is contained in:
parent
290db45c23
commit
502f4eb54d
@ -7,7 +7,7 @@
|
|||||||
# 若需转载或借鉴 许可声明请查看仓库目录下的 Lisence.md
|
# 若需转载或借鉴 许可声明请查看仓库目录下的 Lisence.md
|
||||||
|
|
||||||
|
|
||||||
__version__ = '0.2.0'
|
__version__ = '0.2.0.1'
|
||||||
__all__ = []
|
__all__ = []
|
||||||
__author__ = (('金羿', 'Eilles Wan'), ('诸葛亮与八卦阵', 'bgArray'), ('鸣凤鸽子', 'MingFengPigeon'))
|
__author__ = (('金羿', 'Eilles Wan'), ('诸葛亮与八卦阵', 'bgArray'), ('鸣凤鸽子', 'MingFengPigeon'))
|
||||||
|
|
||||||
|
@ -636,6 +636,7 @@ class midiConvert:
|
|||||||
if msg.time != 0:
|
if msg.time != 0:
|
||||||
try:
|
try:
|
||||||
microseconds += msg.time * tempo / self.midi.ticks_per_beat
|
microseconds += msg.time * tempo / self.midi.ticks_per_beat
|
||||||
|
# print(microseconds)
|
||||||
except NameError:
|
except NameError:
|
||||||
raise NotDefineTempoError("计算当前分数时出错 未定义参量 Tempo")
|
raise NotDefineTempoError("计算当前分数时出错 未定义参量 Tempo")
|
||||||
|
|
||||||
@ -706,7 +707,7 @@ class midiConvert:
|
|||||||
soundID, _X = self.__bitInst2IDwithX(InstID)
|
soundID, _X = self.__bitInst2IDwithX(InstID)
|
||||||
else:
|
else:
|
||||||
soundID, _X = self.__Inst2soundIDwithX(InstID)
|
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)
|
maxScore = max(maxScore, score_now)
|
||||||
|
|
||||||
nowTrack.append(
|
nowTrack.append(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user