Midi歌词支持,文档格式更新

This commit is contained in:
2025-08-19 04:37:11 +08:00
parent 8df63df26c
commit 774f78359c
12 changed files with 698 additions and 195 deletions

View File

@@ -113,13 +113,20 @@ class NoteOnOffMismatchError(MidiFormatException):
"""音符开音和停止不匹配的错误"""
super().__init__("音符不匹配", *args)
class LyricMismatchError(MSCTBaseException):
"""歌词匹配解析错误"""
def __init__(self, *args):
"""有可能产生了错误的歌词解析"""
super().__init__("歌词解析错误", *args)
class ZeroSpeedError(MSCTBaseException, ZeroDivisionError):
"""以0作为播放速度的错误"""
def __init__(self, *args):
"""以0作为播放速度的错误"""
super().__init__("播放速度为0", *args)
super().__init__("播放速度为", *args)
class IllegalMinimumVolumeError(MSCTBaseException, ValueError):