This commit is contained in:
EillesWan 2024-02-08 18:29:29 +08:00
parent 041c64ff65
commit a4565b8529
4 changed files with 29 additions and 28 deletions

1
.gitignore vendored
View File

@ -21,6 +21,7 @@ RES.txt
/MSCT_Packer.py /MSCT_Packer.py
/Packer/*.MPK /Packer/*.MPK
/Packer/checksum.txt /Packer/checksum.txt
/bgArrayLib
# Byte-compiled / optimized # Byte-compiled / optimized
__pycache__/ __pycache__/

View File

@ -17,8 +17,8 @@ Terms & Conditions: License.md in the root directory
# 若需转载或借鉴 许可声明请查看仓库目录下的 License.md # 若需转载或借鉴 许可声明请查看仓库目录下的 License.md
__version__ = "1.7.3" __version__ = "1.7.4"
__vername__ = "功能结构化" __vername__ = "部分音色更新"
__author__ = ( __author__ = (
("金羿", "Eilles Wan"), ("金羿", "Eilles Wan"),
("诸葛亮与八卦阵", "bgArray"), ("诸葛亮与八卦阵", "bgArray"),

View File

@ -269,18 +269,18 @@ MIDI_PITCHED_NOTE_NAME_TABLE: Dict[int, Tuple[str, str]] = {
78: ("尺八", "Shakuhachi"), 78: ("尺八", "Shakuhachi"),
79: ("哨子", "Whistle"), 79: ("哨子", "Whistle"),
80: ("陶笛", "Ocarina"), 80: ("陶笛", "Ocarina"),
81: ("方波", "Lead 1 (square)"), 81: ("合成方波", "Lead 1 (square)"),
82: ("锯齿波", "Lead 2 (sawtooth)"), 82: ("锯齿波", "Lead 2 (sawtooth)"),
83: ("汽笛风琴", "Lead 3 (calliope)"), 83: ("汽笛风琴", "Lead 3 (calliope)"),
84: ("合成吹管", "Lead 4 (chiff)"), 84: ("合成吹管", "Lead 4 (chiff)"),
85: ("合成电吉他", "Lead 5 (charang)"), 85: ("合成电吉他", "Lead 5 (charang)"),
86: ("人声键盘", "Lead 6 (voice)"), 86: ("人声键盘", "Lead 6 (voice)"),
87: ("五度音", "Lead 7 (fifths)"), 87: ("五度音", "Lead 7 (fifths)"),
88: ("低音+主音", "Lead 8 (bass+lead)"), 88: ("低音主音", "Lead 8 (bass+lead)"),
89: ("新纪", "Pad 1 (new age)"), 89: ("新纪", "Pad 1 (new age)"),
90: ("暖温", "Pad 2 (warm)"), 90: ("暖温", "Pad 2 (warm)"),
91: ("合成", "Pad 3 (polysynth)"), 91: ("", "Pad 3 (polysynth)"),
92: ("人声合唱", "Pad 4 (choir)"), 92: ("合声", "Pad 4 (choir)"),
93: ("弓弦", "Pad 5 (bowed)"), 93: ("弓弦", "Pad 5 (bowed)"),
94: ("银铃", "Pad 6 (metallic)"), 94: ("银铃", "Pad 6 (metallic)"),
95: ("荣光", "Pad 7 (halo)"), 95: ("荣光", "Pad 7 (halo)"),
@ -338,7 +338,7 @@ MIDI_PERCUSSION_NOTE_NAME_TABLE: Dict[int, Tuple[str, str]] = {
49: ("强音钹1", "Crash Cymbal 1"), 49: ("强音钹1", "Crash Cymbal 1"),
50: ("高桶鼓", "High Tom"), 50: ("高桶鼓", "High Tom"),
51: ("打点钹1", "Ride Cymbal 1"), 51: ("打点钹1", "Ride Cymbal 1"),
52: ("", "Chinese Cymbal"), 52: ("", "Chinese Cymbal"),
53: ("圆铃", "Ride Bell"), 53: ("圆铃", "Ride Bell"),
54: ("铃鼓", "Tambourine"), 54: ("铃鼓", "Tambourine"),
55: ("小钹铜钹", "Splash Cymbal"), 55: ("小钹铜钹", "Splash Cymbal"),
@ -356,7 +356,7 @@ MIDI_PERCUSSION_NOTE_NAME_TABLE: Dict[int, Tuple[str, str]] = {
67: ("高音阿哥哥", "High Agogo"), 67: ("高音阿哥哥", "High Agogo"),
68: ("低音阿哥哥", "Low Agogo"), 68: ("低音阿哥哥", "Low Agogo"),
69: ("串珠", "Cabasa"), 69: ("串珠", "Cabasa"),
70: ("", "Maracas"), 70: ("", "Maracas"),
71: ("短口哨", "Short Whistle"), 71: ("短口哨", "Short Whistle"),
72: ("长口哨", "Long Whistle"), 72: ("长口哨", "Long Whistle"),
73: ("短刮壶", "Short Guiro"), 73: ("短刮壶", "Short Guiro"),
@ -610,7 +610,7 @@ MM_CLASSIC_PERCUSSION_INSTRUMENT_TABLE: Dict[int, Tuple[str, int]] = {
67: ("note.bell", 4), 67: ("note.bell", 4),
68: ("note.hat", -1), 68: ("note.hat", -1),
69: ("note.hat", -1), 69: ("note.hat", -1),
70: ("note.flute", 5), 70: ("note.snare", -1),
71: ("note.flute", 5), 71: ("note.flute", 5),
72: ("note.hat", -1), 72: ("note.hat", -1),
73: ("note.hat", -1), 73: ("note.hat", -1),
@ -796,7 +796,7 @@ MM_TOUCH_PERCUSSION_INSTRUMENT_TABLE: Dict[int, Tuple[str, int]] = {
67: ("note.bell", 4), 67: ("note.bell", 4),
68: ("note.hat", -1), 68: ("note.hat", -1),
69: ("note.hat", -1), 69: ("note.hat", -1),
70: ("note.flute", 5), 70: ("note.snare", -1),
71: ("note.flute", 5), 71: ("note.flute", 5),
72: ("note.hat", -1), 72: ("note.hat", -1),
73: ("note.hat", -1), 73: ("note.hat", -1),

View File

@ -42,7 +42,7 @@ import dill
import brotli import brotli
def enpack_llc_pack(sth, to_dist: str): def enpack_msct_pack(sth, to_dist: str):
packing_bytes = brotli.compress( packing_bytes = brotli.compress(
dill.dumps( dill.dumps(
sth, sth,
@ -59,12 +59,12 @@ def enpack_llc_pack(sth, to_dist: str):
with open("./Packer/checksum.txt", "w", encoding="utf-8") as f: with open("./Packer/checksum.txt", "w", encoding="utf-8") as f:
f.write("MSCT_MAIN:\n") f.write("MSCT_MAIN:\n")
f.write(enpack_llc_pack(MSCT_MAIN, "./Packer/MSCT_MAIN.MPK").hexdigest()) f.write(enpack_msct_pack(MSCT_MAIN, "./Packer/MSCT_MAIN.MPK").hexdigest())
f.write("\nMSCT_PLUGIN:\n") f.write("\nMSCT_PLUGIN:\n")
f.write(enpack_llc_pack(MSCT_PLUGIN, "./Packer/MSCT_PLUGIN.MPK").hexdigest()) f.write(enpack_msct_pack(MSCT_PLUGIN, "./Packer/MSCT_PLUGIN.MPK").hexdigest())
f.write("\nMSCT_PLUGIN_FUNCTION:\n") f.write("\nMSCT_PLUGIN_FUNCTION:\n")
f.write( f.write(
enpack_llc_pack( enpack_msct_pack(
MSCT_PLUGIN_FUNCTION, "./Packer/MSCT_PLUGIN_FUNCTION.MPK" MSCT_PLUGIN_FUNCTION, "./Packer/MSCT_PLUGIN_FUNCTION.MPK"
).hexdigest() ).hexdigest()
) )