mirror of
https://github.com/TriM-Organization/Musicreater.git
synced 2025-06-14 07:58:09 +00:00
67 lines
1.4 KiB
Python
67 lines
1.4 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
"""
|
|
存放数据类型的定义
|
|
"""
|
|
|
|
"""
|
|
版权所有 © 2024 金羿 & 诸葛亮与八卦阵
|
|
Copyright © 2025 Eilles & bgArray
|
|
|
|
开源相关声明请见 仓库根目录下的 License.md
|
|
Terms & Conditions: License.md in the root directory
|
|
"""
|
|
|
|
# 睿乐组织 开发交流群 861684859
|
|
# Email TriM-Organization@hotmail.com
|
|
# 若需转载或借鉴 许可声明请查看仓库目录下的 License.md
|
|
|
|
from typing import Callable, Dict, List, Literal, Mapping, Tuple, Union
|
|
|
|
from .subclass import MineNote
|
|
|
|
MidiNoteNameTableType = Mapping[int, Tuple[str, ...]]
|
|
"""
|
|
Midi音符名称对照表类型
|
|
"""
|
|
|
|
MidiInstrumentTableType = Mapping[int, str]
|
|
"""
|
|
Midi乐器对照表类型
|
|
"""
|
|
|
|
FittingFunctionType = Callable[[float], float]
|
|
"""
|
|
声像偏移音量拟合函数类型
|
|
"""
|
|
|
|
ChannelType = Dict[
|
|
int,
|
|
Dict[
|
|
int,
|
|
List[
|
|
Union[
|
|
Tuple[Literal["PgmC"], int, int],
|
|
Tuple[Literal["NoteS"], int, int, int],
|
|
Tuple[Literal["NoteE"], int, int],
|
|
]
|
|
],
|
|
],
|
|
]
|
|
"""
|
|
以字典所标记的频道信息类型(已弃用)
|
|
|
|
Dict[int,Dict[int,List[Union[Tuple[Literal["PgmC"], int, int],Tuple[Literal["NoteS"], int, int, int],Tuple[Literal["NoteE"], int, int],]],],]
|
|
"""
|
|
|
|
|
|
MineNoteChannelType = Mapping[
|
|
int,
|
|
List[MineNote,],
|
|
]
|
|
"""
|
|
我的世界频道信息类型
|
|
|
|
Dict[int,Dict[int,List[MineNote,],],]
|
|
"""
|