From 992572cbf1246d803f7f8b5bb94ee703b920c77b Mon Sep 17 00:00:00 2001 From: EillesWan Date: Wed, 8 Jun 2022 01:50:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BA=86=E4=B8=80=E4=B8=8B?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 - README.md | 3 ++- README_EN.md | 4 +++- __pycache__/__init__.cpython-38.pyc | Bin 637 -> 0 bytes __pycache__/main.cpython-38.pyc | Bin 17247 -> 0 bytes demo_convert.py | 29 +++++++++++++++++++++++++- example_convert_bdx.py | 2 +- example_convert_mcpack.py | 2 +- __init__.py => msctPkgver/__init__.py | 27 +++++++++++++++++------- main.py => msctPkgver/main.py | 8 +++---- 10 files changed, 59 insertions(+), 17 deletions(-) delete mode 100644 __pycache__/__init__.cpython-38.pyc delete mode 100644 __pycache__/main.cpython-38.pyc rename __init__.py => msctPkgver/__init__.py (50%) rename main.py => msctPkgver/main.py (98%) diff --git a/.gitignore b/.gitignore index 8720477..d48cb25 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ # mystuff -/__pycache__ /.vscode diff --git a/README.md b/README.md index 4e846a3..b15dde9 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ 音·创 Musicreater 是一款免费开源的 **《我的世界:基岩版》** 音乐制作软件 -音·创 pkgver (Musicreater Package Version) 是一款免费开源的 **《我的世界:基岩版》** 音乐转换库 +音·创 库版 (Musicreater Package Version) 是一款免费开源的针对 **《我的世界:基岩版》** 的midi音乐转换库 欢迎加群:[861684859](https://jq.qq.com/?_wv=1027&k=hpeRxrYr) @@ -114,6 +114,7 @@ - 感谢由 Charlie_Ping “查理平” 带来的bdx文件转换参考 - 感谢由 CMA_2401PT 为我们的软件开发进行指导 - 感谢由 Dislink Sforza \带来的midi音色解析以及转换指令的算法,我们将其加入了我们众多算法之一 +- 感谢 Touch \提供的测试支持 - 感谢广大群友为此程序提供的测试等支持 - 若您对我们有所贡献但您的名字没有显示在此列表中,请联系我! diff --git a/README_EN.md b/README_EN.md index 21d309b..c6c5036 100644 --- a/README_EN.md +++ b/README_EN.md @@ -22,7 +22,9 @@ ## Introduction🚀 -Musicreater(音·创) is an free open source software which is used for making and also creating music in **Minecraft: Bedrock Edition**. +Musicreater(音·创) is a free open source software which is used for making and also creating music in **Minecraft: Bedrock Edition**. + +Musicreater pkgver(Package Version 音·创 库版) is a free open source library used for convert midi file into formats that is suitable for **Minecraft: Bedrock Edition**. Welcome to join our QQ group: [861684859](https://jq.qq.com/?_wv=1027&k=hpeRxrYr) diff --git a/__pycache__/__init__.cpython-38.pyc b/__pycache__/__init__.cpython-38.pyc deleted file mode 100644 index 8e439b096ec5602fd5ecb9dc3424991ce2ddec43..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 637 zcmYjP&1(}u6yHrYO^DW$-WNPY+E6`;6g^lF{D>MYE`ec_9X5;m5jMM(y2zu$W^^WHp|olR0O-rT*Jzr#?} zQMfrdBCxp%t2_rnpg2mPIa;K+h!EkTm=U6DG);kKLM_CE89A1vg!p|bl`t0}#IM0pGuCpEtzWy4KW)B=*(*o(*+x}J?+`*3Jz38~(J{i3u^-(ppkX}e% zOhr=>a|W^n4a@)Wvzojv$ucgp%e)G}IRK77+s9VVb@p9*ozy>)&ikPIjf>~SYr4)? zfOI;Hw%?M*FtEpDZ<9N7OH#!ptcn>)#F}arfZ**7|DEfI(QKFV>3)g|=|2Ma&vNVim09 zv0i4M6txp6rZ6N<2k;guMNjApw^K8dI6{I}K!`hq&1!?o=wn+$X~jv2D$(M diff --git a/__pycache__/main.cpython-38.pyc b/__pycache__/main.cpython-38.pyc deleted file mode 100644 index ebd71ca032306bcf71eb1fb42053443f90d42d2a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 17247 zcmeHud2k!onP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mQ4zD?I{hD|v|ss2iUk6xzYK5=Nf>R|%Hk>NCtF&p1lKWePr^;6G6?CFk%M83+v0rx0?JDnPbTo0~$nMEuh4;89Lrhlr z{r%c4sa=s@hu5RJBwa-fT3K27BK)n^+nO6{>ir9^C$P%E`d3nIDdGRkGzeMw4euT1 u9{W@3!uLJ?c${UE_&Nc;))E&IImAo@a{_mY>AgDySd%KKa|51G+y4Q{hFdcL diff --git a/demo_convert.py b/demo_convert.py index 29cccd9..b1ec441 100644 --- a/demo_convert.py +++ b/demo_convert.py @@ -1,6 +1,33 @@ # -*- coding: utf-8 -*- -from main import * + +# 音·创 开发交流群 861684859 +# Email EillesWan2006@163.com W-YI_DoctorYI@outlook.com EillesWan@outlook.com +# 版权所有 金羿("Eilles Wan") & 诸葛亮与八卦阵("bgArray") & 鸣凤鸽子("MingFengPigeon") +# 若需转载或借鉴 请依照 Apache 2.0 许可证进行许可 + + +""" +音·创 库版 MIDI转换展示程序 +Musicreater Package Version : Demo for Midi Conversion + + Copyright 2022 all the developers of Musicreater + + Licensed under the Apache License, Version 2.0 (the 'License'); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an 'AS IS' BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +""" + + +from msctPkgver.main import * import os convertion = midiConvert() diff --git a/example_convert_bdx.py b/example_convert_bdx.py index 82702c1..28397f9 100644 --- a/example_convert_bdx.py +++ b/example_convert_bdx.py @@ -1,7 +1,7 @@ # THIS PROGRAM IS ONLY A TEST EXAMPLE -from main import * +from msctPkgver.main import * convertion = midiConvert() convertion.convert(input('请输入midi文件路径:'), input('请输入输出路径:')) diff --git a/example_convert_mcpack.py b/example_convert_mcpack.py index 0ce0bbb..ece9943 100644 --- a/example_convert_mcpack.py +++ b/example_convert_mcpack.py @@ -1,7 +1,7 @@ # THIS PROGRAM IS ONLY A TEST EXAMPLE -from main import * +from msctPkgver.main import * convertion = midiConvert() convertion.convert(input('请输入midi文件路径:'), input('请输入输出路径:')) diff --git a/__init__.py b/msctPkgver/__init__.py similarity index 50% rename from __init__.py rename to msctPkgver/__init__.py index e0fe887..2be4b07 100644 --- a/__init__.py +++ b/msctPkgver/__init__.py @@ -1,18 +1,26 @@ -# -*- coding:utf-8 -*- +# -*- coding: utf-8 -*- """一个简单的基于音·创的我的世界音频操作工具""" -import main -if main.importDebug(): - print("Debug finished correctly") -else: - print("Debug finished with errors") +# 音·创 开发交流群 861684859 +# Email EillesWan2006@163.com W-YI_DoctorYI@outlook.com EillesWan@outlook.com +# 版权所有 金羿("Eilles Wan") & 诸葛亮与八卦阵("bgArray") & 鸣凤鸽子("MingFengPigeon") +# 若需转载或借鉴 请依照 Apache 2.0 许可证进行许可 + + __version__ = '0.0.1' __all__ = [] __author__ = (('金羿', 'Eilles Wan'), ('诸葛亮与八卦阵', 'bgArray'), ('鸣凤鸽子', 'MingFengPigeon')) """ - Copyright © 2022 Team-Ryoun +音·创 库版 (Musicreater Package Version) +是一款免费开源的针对《我的世界:基岩版》的midi音乐转换库 +注意!除了此源文件以外,任何属于此仓库以及此项目的文件均依照Apache许可证进行许可 +Musicreater pkgver (Package Version 音·创 库版) +A free open source library used for convert midi file into formats that is suitable for **Minecraft: Bedrock Edition**. +Note! Except for this source file, all the files in this repository and this project are licensed under Apache License 2.0 + + Copyright 2022 all the developers of Musicreater Licensed under the Apache License, Version 2.0 (the 'License'); you may not use this file except in compliance with the License. @@ -27,5 +35,10 @@ __author__ = (('金羿', 'Eilles Wan'), ('诸葛亮与八卦阵', 'bgArray'), (' limitations under the License. """ + +import msctPkgver.main as msctPkgver + +from msctPkgver.main import * + print('此工具由凌天之云创新团队开发,版权归本团队参与开发的人员共同所有。') print('This tool is developed by Team-Ryoun, copyright belongs to the team members who developed the tool.') diff --git a/main.py b/msctPkgver/main.py similarity index 98% rename from main.py rename to msctPkgver/main.py index 3e8160b..dfa81db 100644 --- a/main.py +++ b/msctPkgver/main.py @@ -8,11 +8,11 @@ """ -音·创 (Musicreater) -一款免费开源的 《我的世界:基岩版》 音乐制作软件 +音·创 库版 (Musicreater Package Version) +是一款免费开源的针对《我的世界:基岩版》的midi音乐转换库 注意!除了此源文件以外,任何属于此仓库以及此项目的文件均依照Apache许可证进行许可 -Musicreater (音·创) -A free opensource software which is used for creating all kinds of musics in Minecraft +Musicreater pkgver (Package Version 音·创 库版) +A free open source library used for convert midi file into formats that is suitable for **Minecraft: Bedrock Edition**. Note! Except for this source file, all the files in this repository and this project are licensed under Apache License 2.0 Copyright 2022 all the developers of Musicreater