mirror of
https://github.com/TriM-Organization/Musicreater.git
synced 2024-11-11 01:27:35 +08:00
2023/2/1 update fug fixed
This commit is contained in:
parent
a8c0c9e1d5
commit
f568803b0d
@ -686,16 +686,14 @@ class midiConvert:
|
|||||||
|
|
||||||
if msg.time != 0:
|
if msg.time != 0:
|
||||||
try:
|
try:
|
||||||
microseconds += msg.time * tempo / self.midi.ticks_per_beat
|
microseconds += msg.time * 1000
|
||||||
# print(microseconds)
|
# print(microseconds)
|
||||||
except NameError:
|
except NameError:
|
||||||
if self.debugMode:
|
if self.debugMode:
|
||||||
raise NotDefineTempoError("计算当前分数时出错 未定义参量 Tempo")
|
raise NotDefineTempoError("计算当前分数时出错 未定义参量 Tempo")
|
||||||
else:
|
else:
|
||||||
microseconds += (
|
microseconds += (
|
||||||
msg.time
|
msg.time * 1000
|
||||||
* mido.midifiles.midifiles.DEFAULT_TEMPO
|
|
||||||
/ self.midi.ticks_per_beat
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if msg.is_meta:
|
if msg.is_meta:
|
||||||
@ -811,6 +809,7 @@ class midiConvert:
|
|||||||
:param speed: 速度,注意:这里的速度指的是播放倍率,其原理为在播放音频的时候,每个音符的播放时间除以 speed
|
:param speed: 速度,注意:这里的速度指的是播放倍率,其原理为在播放音频的时候,每个音符的播放时间除以 speed
|
||||||
:return: tuple(命令列表, 命令个数, 计分板最大值)
|
:return: tuple(命令列表, 命令个数, 计分板最大值)
|
||||||
"""
|
"""
|
||||||
|
# TODO: 这里的时间转换不知道有没有问题
|
||||||
|
|
||||||
if MaxVolume > 1:
|
if MaxVolume > 1:
|
||||||
MaxVolume = 1.0
|
MaxVolume = 1.0
|
||||||
|
Loading…
Reference in New Issue
Block a user