小修改

This commit is contained in:
Eilles
2026-07-03 03:05:47 +08:00
parent 6940a211b4
commit 816f3cbc3c
+10 -12
View File
@@ -205,8 +205,6 @@ class SingleNote:
self.extra_info = extra_information if extra_information else {}
@classmethod
def decode(cls, code_buffer: bytes, is_high_time_precision: bool = True):
"""自字节码析出 SingleNote 类"""
@@ -367,16 +365,6 @@ class SingleNote:
return self.start_time > other.start_time
class CurvableParam(str, Enum):
"""可曲线化的参数 枚举类"""
PITCH = "adjust_note_pitch"
VOLUME = "adjust_note_volume"
DISTANCE = "adjust_note_sound_distance"
LR_PANNING = "adjust_note_leftright_panning_degree"
UD_PANNING = "adjust_note_updown_panning_degree"
@dataclass
class MineNote:
"""我的世界音符对象(仅提供我的世界相关接口)"""
@@ -430,6 +418,16 @@ class MineNote:
)
class CurvableParam(str, Enum):
"""可曲线化的参数 枚举类"""
PITCH = "adjust_note_pitch"
VOLUME = "adjust_note_volume"
DISTANCE = "adjust_note_sound_distance"
LR_PANNING = "adjust_note_leftright_panning_degree"
UD_PANNING = "adjust_note_updown_panning_degree"
class SingleTrack(List[SingleNote]):
"""存储单个轨道的类"""