部分API小幅度新增内容

This commit is contained in:
EillesWan 2024-10-22 00:19:39 +08:00
parent 794ee6d080
commit e4304dc3d1
6 changed files with 18 additions and 18 deletions

View File

@ -22,7 +22,7 @@ The Licensor of Musicreater("this project") is Eilles Wan, bgArray.
# 若需转载或借鉴 许可声明请查看仓库目录下的 License.md
__version__ = "2.2.1"
__version__ = "2.2.2"
__vername__ = "部分API小幅度新增内容"
__author__ = (
("金羿", "Eilles Wan"),

View File

@ -147,7 +147,7 @@ def to_addon_pack_in_score(
os.remove(f"{dist_path}/{midi_cvt.music_name}.mcpack")
compress_zipfile(
f"{dist_path}/temp/",
f"{dist_path}/{midi_cvt.music_name}.mcpack",
f"{dist_path}/{midi_cvt.music_name}[score].mcpack",
)
shutil.rmtree(f"{dist_path}/temp/")
@ -350,7 +350,7 @@ def to_addon_pack_in_delay(
os.remove(f"{dist_path}/{midi_cvt.music_name}.mcpack")
compress_zipfile(
f"{dist_path}/temp/",
f"{dist_path}/{midi_cvt.music_name}.mcpack",
f"{dist_path}/{midi_cvt.music_name}[delay].mcpack",
)
shutil.rmtree(f"{dist_path}/temp/")
@ -557,7 +557,7 @@ def to_addon_pack_in_repeater(
os.remove(f"{dist_path}/{midi_cvt.music_name}.mcpack")
compress_zipfile(
f"{dist_path}/temp/",
f"{dist_path}/{midi_cvt.music_name}.mcpack",
f"{dist_path}/{midi_cvt.music_name}[repeater].mcpack",
)
shutil.rmtree(f"{dist_path}/temp/")
@ -677,7 +677,7 @@ def to_addon_pack_in_repeater_divided_by_instrument(
os.remove(f"{dist_path}/{midi_cvt.music_name}.mcpack")
compress_zipfile(
f"{dist_path}/temp/",
f"{dist_path}/{midi_cvt.music_name}.mcpack",
f"{dist_path}/{midi_cvt.music_name}[repeater-div].mcpack",
)
shutil.rmtree(f"{dist_path}/temp/")

View File

@ -117,7 +117,7 @@ def to_BDX_file_in_score(
_bytes += cmdBytes
with open(
os.path.abspath(os.path.join(dist_path, f"{midi_cvt.music_name}.bdx")),
os.path.abspath(os.path.join(dist_path, f"{midi_cvt.music_name}[score].bdx")),
"ab+",
) as f:
f.write(brotli.compress(_bytes + b"XE"))
@ -212,7 +212,7 @@ def to_BDX_file_in_delay(
_bytes += cmdBytes
with open(
os.path.abspath(os.path.join(dist_path, f"{midi_cvt.music_name}.bdx")),
os.path.abspath(os.path.join(dist_path, f"{midi_cvt.music_name}[delay].bdx")),
"ab+",
) as f:
f.write(brotli.compress(_bytes + b"XE"))

View File

@ -67,7 +67,7 @@ def to_mcstructure_file_in_delay(
)
with open(
os.path.abspath(os.path.join(dist_path, f"{midi_cvt.music_name}.mcstructure")),
os.path.abspath(os.path.join(dist_path, f"{midi_cvt.music_name}[delay].mcstructure")),
"wb+",
) as f:
struct.dump(f)
@ -138,7 +138,7 @@ def to_mcstructure_file_in_score(
)
with open(
os.path.abspath(os.path.join(dist_path, f"{midi_cvt.music_name}.mcstructure")),
os.path.abspath(os.path.join(dist_path, f"{midi_cvt.music_name}[score].mcstructure")),
"wb+",
) as f:
struct.dump(f)
@ -197,7 +197,7 @@ def to_mcstructure_file_in_repeater(
)
with open(
os.path.abspath(os.path.join(dist_path, f"{midi_cvt.music_name}.mcstructure")),
os.path.abspath(os.path.join(dist_path, f"{midi_cvt.music_name}[repeater].mcstructure")),
"wb+",
) as f:
struct.dump(f)
@ -262,7 +262,7 @@ def to_mcstructure_files_in_repeater_divided_by_instruments(
os.path.abspath(
os.path.join(
dist_path,
"{}_{}.mcstructure".format(
"{}[repeater-div]_{}.mcstructure".format(
midi_cvt.music_name, inst.replace(".", "-")
),
)

View File

@ -112,9 +112,9 @@
此项目亦不隶属或关联于 网易
Minecraft Mojang Synergies AB 的商标此项目中所有对于我的世界Minecraft等相关称呼均为引用性使用
Minecraft Mojang Synergies AB 的商标此项目中所有对于我的世界Minecraft等相关称呼均为必要的介绍性使用
- 上文提及的 网易 公司指代的是在中国大陆运营我的世界中国版的上海网之易网络科技发展有限公司
- 上文提及的 网易 公司指代的是在中国大陆运营我的世界中国版的上海网之易璀璨网络科技有限公司
NOT AN OFFICIAL MINECRAFT PRODUCT.

View File

@ -69,11 +69,11 @@ Commands such as `python`、`pip` could be changed to some like `python3` or `pi
### Authors ✒
**Eilles (金羿)**A senior high school student, individual developer, unfamous Bilibili UPer, which knows a little about commands in _Minecraft: Bedrock Edition_
**Eilles (金羿)**A student, individual developer, unfamous Bilibili UPer, which knows a little about commands in _Minecraft: Bedrock Edition_
**bgArray (诸葛亮与八卦阵)**: A junior high school student, player of _Minecraft: Bedrock Edition_, which is a fan of music and programming.
**bgArray (诸葛亮与八卦阵)**: A student, player of _Minecraft: Bedrock Edition_, which is a fan of music and programming.
**Touch (偷吃不是Touch)**: A man who is used to use command(s) in _Minecraft: Bedrock Edition_, who supported us of debugging and testing program and algorithm
**Touch (偷吃不是Touch)**: A man who is good at using command(s) in _Minecraft: Bedrock Edition_, who supported us of debugging and testing program and algorithm
## Acknowledgements 🙏
@ -118,9 +118,9 @@ NOT APPROVED BY OR ASSOCIATED WITH NETEASE.
此项目亦不隶属或关联于 网易 相关
Minecraft Mojang Synergies AB 的商标此项目中所有对于我的世界Minecraft等相关称呼均为引用性使用
Minecraft Mojang Synergies AB 的商标此项目中所有对于我的世界Minecraft等相关称呼均为必要的介绍性使用
- 上文提及的 网易 公司指代的是在中国大陆运营我的世界中国版的上海网之易网络科技发展有限公司
- 上文提及的 网易 公司指代的是在中国大陆运营我的世界中国版的上海网之易璀璨网络科技有限公司
[Bilibili: Eilles]: https://img.shields.io/badge/Bilibili-%E9%87%91%E7%BE%BFELS-00A1E7?style=for-the-badge
[Bilibili: bgArray]: https://img.shields.io/badge/Bilibili-%E8%AF%B8%E8%91%9B%E4%BA%AE%E4%B8%8E%E5%85%AB%E5%8D%A6%E9%98%B5-00A1E7?style=for-the-badge