更新个屁,Gitee脸都不要了

This commit is contained in:
EillesWan 2022-05-21 00:45:10 +08:00
parent bc99f8f4be
commit 51d248cdc2
27 changed files with 47 additions and 705 deletions

View File

@ -5,8 +5,8 @@
# QQ 2647547478
# 音·创 开发交流群 861684859
# Email EillesWan2006@163.com W-YI_DoctorYI@outlook.com EillesWan@outlook.com
# 版权所有 Team-Ryoun 金羿("Eilles Wan") & 诸葛亮与八卦阵("bgArray")
# 若需转载或借鉴 请附作者
# 版权所有 金羿("Eilles Wan") & 诸葛亮与八卦阵("bgArray") & 鸣凤鸽子("MingFengPigeon")
# 若需转载或借鉴 请依照 Apache 2.0 许可证进行许可
"""
@ -15,7 +15,7 @@
Musicreater (·)
A free opensource software which is used for creating all kinds of musics in Minecraft
Copyright 2022 Team-Ryoun
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.
@ -39,6 +39,7 @@ A free opensource software which is used for creating all kinds of musics in Min
from msctLib.buildIN import version
from languages.lang import _
__ver__ = f'{version.version[1]} {version.version[0]}'
__author__ = '金羿Eilles'
@ -46,7 +47,14 @@ __author__ = '金羿Eilles'
def __main__():
pass
import wx # 引入wxPython库
app = wx.App(False)
frame = wx.Frame(None, id=wx.ID_ANY, title=f"{_('F音创')} {__ver__}", size=(1600, 900))
# 创建图标
icon_obj = wx.Icon(name="./resources/msctIcon.png")
frame.SetIcon(icon_obj) # 设定图标
frame.Show(True) # 显示该窗口
app.MainLoop() # 应用程序消息处理

View File

@ -1,99 +0,0 @@
# -*- coding:utf-8 -*-
'''此功能已废弃'''
# W-YI 金羿
# QQ 2647547478
# 音·创 开发交流群 861684859
# Email EillesWan2006@163.com W-YI_DoctorYI@outlook.com EillesWan@outlook.com
# 版权所有 Team-Ryoun 金羿("Eilles Wan") & 诸葛亮与八卦阵("bgArray")
# 若需转载或借鉴 请附作者
"""
Copyright 2022 Team-Ryoun 金羿("Eilles Wan") & 诸葛亮与八卦阵("bgArray")
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.
"""
# 代码写的并非十分的漂亮还请大佬多多包涵本软件源代码依照Apache软件协议公开
# -----------------------------分割线-----------------------------
# 诸葛亮与八卦阵帮忙修改语法 日期:---2022年1月19日
# 统计致命三级错误0个警告二级错误0个语法一级错误12个
# 目前我的Pycharm并没有显示任何错误有错误可以向
# bgArray 诸葛亮与八卦阵
# QQ 474037765 或最好加入:音·创 开发交流群 861684859
# ------------------------- split line-----------------------------
# Zhuge Liang and Bagua array help to modify the grammar date: -- January 19, 2022
# Statistics: fatal (Level 3) errors: 0; Warning (Level 2) errors: 15; Syntax (Level 1) error: 597
# At present, my Pycham does not display any errors. If there are errors, you can report them to me
# Bgarray Zhuge Liang and Bagua array
# QQ 474037765 or better join: Musicreater development exchange group 861684859
# ------------------------- split line-----------------------------
# 下面为正文
# 将程序中用双引号""括起来的字符串
# 转为字符串列表 list[str, str, ...]
# 方便进行语言翻译支持。
import sys
startWith = 0
def __main__():
textList = []
for fileName in sys.argv[1:]:
print('读取文件: {}'.format(fileName))
fileText = []
for line in open(fileName, 'r', encoding='utf-8'):
while line.count('"') >= 2:
# 只有上帝看得懂我在写什么。
if line[
line.index('"'):2 + line[line.index('"') + 1:].index('"') + len(line[:line.index('"')])] in textList:
thisText = textList.index(
line[line.index('"'):2 + line[line.index('"') + 1:].index('"') + len(line[:line.index('"')])])
else:
thisText = len(textList)
textList.append(
line[line.index('"'):2 + line[line.index('"') + 1:].index('"') + len(line[:line.index('"')])])
line = line.replace(
line[line.index('"'):2 + line[line.index('"') + 1:].index('"') + len(line[:line.index('"')])],
'READABLETEXT[{}]'.format(thisText + startWith)
)
fileText.append(line)
open(fileName + '_C', 'w', encoding='utf-8').writelines(fileText)
outFile = open('lang__.py', 'w', encoding='utf-8')
outFile.write('''# -*- coding:utf-8 -*-
# 由金羿翻译工具生成字符串列表
# 请在所需翻译文件前from 此文件 import READABLETEXT
READABLETEXT = {
''')
for i in range(len(textList)):
outFile.write(" {}:{},\n".format(i + startWith, textList[i]))
outFile.write('}')
outFile.close()
if __name__ == '__main__':
__main__()

View File

@ -1,180 +0,0 @@
# -*- coding:utf-8 -*-
# 由金羿翻译工具生成字符串列表
# 请在所需翻译的文件前from 此文件 import READABLETEXT
READABLETEXT = {
'Translator': (("Eilles Wan (金羿)", True),),
# 此处是语言翻译者列表,其中每个元组第一项为显示文本,第二项为此文本是否为开发者名字
0: "ERROR❌",
1: "TIPS❗",
2: "Clearing log(this wont be in the file)",
3: "Could not clear the temporary files or logs",
4: "saved",
5: "New Musicreater Project",
6: "Select old-type project",
7: "Select Musicreater Project",
8: "Cant open:{}, please check if youve entered the right name",
9: "Musicreat - About",
10: "Musicreater",
11: "Ver. {}",
12: """Team-Ryoun for Minecraft\n×\nTeam-Ryoun for Software Development""",
13: "OK",
14: "Inpute Notes",
15: (("- Developers -", False),
("Eilles Wan (金羿)", True), ("EillesWan@outlook.com", False), ("QQ 2647547478", False),
("bgArray “诸葛亮与八卦阵”", True), ("QQ 474037765", False)),
# 此处是开发者列表,其中每个元组第一项为显示文本,第二项为此文本是否为开发者名字
16: "- Translators -",
# 17:"",
18: "QQ Group: 861684859",
19: "Musicreater - Help",
20: "Select sound file",
21: "Select MIDI file",
22: "Select NoteText file",
23: "Get Note info",
24: "Write in Note info: {}",
25: "Select generating file",
26: "Select generating folder",
27: "Select generating .mcpack file",
28: "Input position info",
29: "Select generating world folder",
30: "Select generating Function Pack",
31: "Select .mcfunction file ",
32: "Select .bdx file ",
33: "DONE✔",
34: "Input playing rate",
35: "Generating",
36: "Select a world folder",
37: "Make sure",
38: "Generate .RyStruct file",
39: "FAILED❌",
40: "Report message inpution",
41: "Musicreater - {}",
42: "ExecutingEntityName: {}",
43: "ScoreboardName: {}",
44: "Instrument: {}",
45: "TrackName: {}",
46: "PackName: {}",
47: "MusicTitle: {}",
48: "IsRepeat?: {}",
49: "Player'sTargetSelector: {}",
50: "Modify Main Option",
51: "Modify Track Option",
52: "Default Instrument: Enter English\n",
53: "Open...",
54: "Open Old Project...",
55: "Save",
56: "Save as...",
57: "Exit",
58: "File",
59: "Load tracks from sound",
60: "Load tracks from Midi",
61: "Load tracks from Text",
62: "Input notes to track",
63: "Edit",
64: "Generate file...",
65: "Generate function pack...",
66: "Generate .mcpack file...",
67: "Functions(Pack)",
68: "Save music as blocks into a map",
69: "Save music as blocks into a exist map...",
70: "Save music as commands into a map",
71: "Save music as commands into a exist map...",
72: "Save music as notebox into a map",
73: "Save music as notebox into a exist map...",
74: "World",
75: "Generate a function that fits current music...",
76: "Export selected track as commands in .bdx...",
77: "Export .bdx file from map...",
78: "Export .RyStruct file from map...",
79: "Load functions into a world...",
80: "Separate long .mcfunction file into small ones and set them into a world as a chain...",
81: "Additional Functions",
82: "Show generating result",
83: "Set a websocket server on localhost:8080 and play the selected track",
84: "Experimental Functions",
85: "Clear log file",
86: "Clear save file(obsolete)",
87: "Help",
88: "About",
89: "Send a bug report",
90: "Q&A",
91: "Main Options",
92: "Export music as .BDX...",
93: "请输入指令链生成最高相对高度(≥5)",
94: "❌You should input a number which is not lower then 4, please reinput again.",
95: "Structure",
96: "Reset Main Options",
97: "Track Options",
# 98:"",
# 99:"",
# 100:"",
# 101:"",
102: "Delete Selected Track",
# 103:"",
# 104:"",
105: "Error with finding or reading file😢{}",
106: "Project is unsaved, save before close?",
107: "Saved in: {}",
108: ("Musicreater 0.0.X Project","Musicreater 0.1+ Project","Musicreater 0.1+ TESTver Project"),
109: "Any Type",
110: "NoteFunCreater Project",
111: "MMFM (V0.0.6) Project",
112: "All Types",
113: ".MP3 file(piano sound)",
114: "Midi file",
115: "Text file",
116: "Position Inpution",
117: "Format Error❌, please Reinput!",
118: ".MCFUNCTION",
119: "The position of the ChainCB for execution:",
# 120: "",
121: "您的函数文件不大于一万条指令,无需进行分割操作。",
122: "请输入执行链生成相对坐标:",
123: "FastBuilder Structure",
124: "Done!\n{}",
125: "一秒,音乐走几拍?",
126: "按下确认后在游戏中使用connect指令连接localhost:8080即可播放",
127: "请输入区域选择的开始坐标:",
128: "请输入区域选择的结束坐标:",
129: "Whether air block remain when export?",
130: "Musicreater Structure",
131: "Done😃\n{}",
132: "Failed❌\n{}\n{}",
133: "Have not developed yet...",
134: "Your name",
135: "Your contact",
136: "Your description of Problem",
137: "Log file will be cleared when you exit.",
138: "Log file will NOT be cleared when you exit.",
139: "修改包名",
140: "修改音乐标题",
141: "修改玩家选择器\n注意!要加上中括号“[]”",
142: "修改本音轨的执行实体名",
143: "修改本音轨所用的积分板",
144: "修改本音轨所用乐器",
145: "您输入的乐器并非游戏内置乐器,是否继续用您输入的字符作为乐器?",
146: "修改本音轨生成的文件名",
# -----2022.1.25更新
147: "生成新文件至...",
148: "从midi导入音轨且用新方法解析",
149: "Open New: Musicreater Project...",
150: "保存为新项目",
151: "另存为新项...",
152: "(开发调试)关闭本次日志记录",
153: "生成新函数包至...",
154: "生成新函数附加包文件至...",
155: "生成新函数附加包文件,并将神羽资源包以散包形式放置至...",
156: "Select [MiraclePlumeResourcePack]...",
157: "没有路径文件(.rpposi文件)请仔细阅读Readme或先试用帮助与疑问->[神羽资源包位置选择]:选择文件夹... 方法添加路径文件吧!",
158: "有路径文件(.rpposi文件)但路径指示错误请仔细阅读Readme或先用帮助与疑问->[神羽资源包位置选择]:选择文件夹... 更改路径!",
159: "更改路径文件(.rpposi文件)成功!!",
160: "从midi导入音轨且用类方法解析",
161: "打开 类方法: 音·创项目...",
162: "保存为类方法项目",
163: "另存为类方法项...",
}

View File

@ -2,7 +2,7 @@
'''对于音·创的语言支持兼语言文件编辑器'''
"""
Copyright 2022 Team-Ryoun
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.
@ -55,13 +55,6 @@ LANGUAGELIST = {
)
}
# 对于旧版本音·创的语言支持
# 重构之后将停止使用
try:
from languages.zhCN import READABLETEXT
except:
pass
from msctLib.log import log

View File

@ -10,7 +10,7 @@ LANGLOCALNAME 简体中文 中国大陆
MSCT 音·创
F音创 音·创 Musicreater
关于 音·创 - 关于
凌云pairs 凌天之云创新我的世界开发团队\n×\n凌天之云创新计算机应用软件开发团队
开发者 - 开发人员 -
译者 - 翻译人员 -
确定 确定
确定 确定
取消 取消

View File

@ -1,185 +0,0 @@
# -*- coding:utf-8 -*-
# 由金羿翻译工具生成字符串列表
# 请在所需翻译文件前from 此文件 import READABLETEXT
READABLETEXT = {
'Translator': (("金羿 Eilles 原稿", True),),
# 此处是语言翻译者列表,其中每个元组第一项为显示文本,第二项为此文本是否为开发者名字
0: "错误❌",
1: "提示❗",
2: "清除log此句不载入日志",
3: "无法清除日志及临时文件",
4: "已存储",
5: "新建 音·创 项目",
6: "请选择旧类型的项目",
7: "请选择 音·创 项目",
8: "无法打开文件:{},请查看您是否输入正确",
9: "音·创 - 关于",
10: "音·创 Musicreater",
11: "当前版本:{}",
12: """凌云我的世界开发团队\n×\n凌云计算机应用软件开发团队""",
13: "确定",
14: "请输入音符",
15: (("- 开发者 -", False),
("金羿 Eilles", True), ("EillesWan@outlook.com", False), ("QQ 2647547478", False),
("bgArray “诸葛亮与八卦阵”", True), ("QQ 474037765", False),
),
# 此处是开发者列表,其中每个元组第一项为显示文本,第二项为此文本是否为开发者名字
16: "- 翻译者 -",
# 17:"",
18: "讨论群: 861684859",
19: "音·创 - 帮助",
20: "请选择钢琴声音的音乐文件",
21: "请选择 MIDI 文件",
22: "请选择 音符文本 文件",
23: "获取音符信息",
24: "音符数据写入{}",
25: "请选择文件生成的位置",
26: "请选择文件夹生成的位置",
27: "请选择.mcpack文件生成的位置",
28: "坐标信息输入",
29: "请选择世界文件夹生成的位置",
30: "请选择函数包生成的位置",
31: "请选择 .mcfunction 文件",
32: "请选择需要生成的.bdx文件",
33: "完成✔",
34: "输入播放速度",
35: "创建中",
36: "请选择世界文件夹所在的位置",
37: "请确认",
38: "生成.RyStruct文件",
39: "失败❌",
40: "邮件反馈信息输入",
41: "音·创 - {}",
42: "执行实体名:{}",
43: "使用计分板:{}",
44: "所用的乐器:{}",
45: "当前音轨名:{}",
46: "包名:{}",
47: "音乐标题:{}",
48: "是否重复:{}",
49: "玩家选择器:{}",
50: "修改主设置",
51: "修改节设置",
52: "游戏内置乐器如下:请输入英文\n",
53: "打开音·创项目...",
54: "打开旧项目...",
55: "保存项目",
56: "另存为...",
57: "退出",
58: "文件",
59: "从钢琴MP3导入音轨",
60: "从midi导入音轨",
61: "从文本文件导入音轨",
62: "输入音符至音轨",
63: "编辑",
64: "生成文件至...",
65: "生成函数包至...",
66: "生成附加包文件至...",
67: "函数(包)",
68: "将音乐以方块存储生成地图",
69: "将音乐以方块存储载入地图…",
70: "将音乐以指令存储生成地图",
71: "将音乐以指令存储载入地图…",
72: "将音乐以音符盒存储生成地图",
73: "将音乐以音符盒存储载入地图…",
74: "世界",
75: "生成符合当前音乐的函数播放器…",
76: "将选中音轨以指令存储生成.bdx文件…",
77: "由地图导出至.bdx文件…",
78: "由地图导出至.RyStruct文件…",
79: "将函数载入世界…",
80: "将大函数分割并建立执行链…",
81: "辅助功能",
82: "展示生成结果",
83: "建立位于localhost:8080上的websocket服务器播放选中音轨",
84: "实验性功能",
85: "清除日志文件",
86: "清除早期版本的存储文件",
87: "帮助",
88: "关于",
89: "发送错误日志反馈",
90: "帮助与疑问",
91: "音乐总设置(项目设置)",
# =============================================================此处有新增
92: "将音乐导出为BDX",
93: "请输入指令链生成最高相对高度(≥5)",
94: "您输入的数据有误❌相对高度请输入一个不小于4的值请重新输入。",
95: "结构操作",
96: "重置项目设置",
97: "当前音轨设置(段落设置)",
# 98:"",
# 99:"",
# 100:"",
# 101:"",
102: "删除选中音轨",
# 103:"",
# 104:"",
105: "找不到或无法读取文件😢:{}",
106: "您当前的项目已修改但未存储,是否先保存当前项目?",
107: "项目已经存储至:{}",
108: ("音·创0.0.X工程文件", "音·创0.1+工程文件", "音·创0.1+TEST工程文件"),
109: "任意类型",
110: "函数音创工程文件",
111: "MMFM0.0.6版本工程文件",
112: "全部类型",
113: "钢琴声音的音频文件",
114: "Midi文件",
115: "文本文件",
116: "请输入坐标:",
117: "您输入的格式有误❌,请重新输入。",
118: "我的世界指令函数文件",
119: "请输入执行链生成坐标:",
# 120: "",
121: "您的函数文件不大于一万条指令,无需进行分割操作。",
122: "请输入执行链生成相对坐标:",
123: "FastBuilder结构文件",
124: "转换结束!\n{}",
125: "一秒,音乐走几拍?",
126: "按下确认后在游戏中使用connect指令连接localhost:8080即可播放",
127: "请输入区域选择的开始坐标:",
128: "请输入区域选择的结束坐标:",
129: "所选区块导出时是否需要保留空气方块?",
130: "音·创结构文件",
131: "文件已生成\n{}",
132: "文件无法生成\n{}\n{}",
133: "本功能尚未开发。",
134: "您的称呼",
135: "您的联系方式",
136: "您对问题的描述",
137: "在程序结束后将清除日志及临时文件信息。",
138: "在程序结束后将不会清除日志及临时文件信息。",
139: "修改包名",
140: "修改音乐标题",
141: "修改玩家选择器\n注意!要加上中括号“[]”",
142: "修改本音轨的执行实体名",
143: "修改本音轨所用的积分板",
144: "修改本音轨所用乐器",
145: "您输入的乐器并非游戏内置乐器,是否继续用您输入的字符作为乐器?",
146: "修改本音轨生成的文件名",
# -----2022.1.25更新
147: "生成乐器文件至...",
148: "从midi导入音轨且用新方法解析",
# 149: "打开 新: 音·创项目...",
# 150: "保存为新项目",
# 151: "另存为新项...",
152: "(开发调试)关闭本次日志记录",
153: "生成乐器函数包至...",
154: "生成乐器函数附加包文件至...",
155: "生成乐器函数附加包文件,并将神羽资源包以散包形式放置至...",
156: "[神羽资源包位置选择]:选择文件夹...",
157: "没有路径文件(.rpposi文件)请仔细阅读Readme或先试用帮助与疑问->[神羽资源包位置选择]:选择文件夹... 方法添加路径文件吧!",
158: "有路径文件(.rpposi文件)但路径指示错误请仔细阅读Readme或先用帮助与疑问->[神羽资源包位置选择]:选择文件夹... 更改路径!",
159: "更改路径文件(.rpposi文件)成功!!",
160: "从midi导入音轨且用类方法解析",
# 161: "打开 类方法: 音·创项目...",
# 162: "保存为类方法项目",
# 163: "另存为类方法项...",
164: "生成新文件至...",
165: "生成新函数包至...",
166: "生成新函数附加包文件至...",
167: "这个midi文件读取不了mido解析报错"
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 86 KiB

View File

@ -0,0 +1,28 @@
# 注意,这里是作者署名文件,文件格式开头为常用名
# 紧跟其后是各个语言下的名字。用 井字符 开头表示
# 注释,请注意,注释符号必须在一行之首否则无作用
# 每进行一次分段表示一个新的开发者,换行表示一个
# 新的语言。请全体开发者就此署名,谢谢!
金羿
zh-CN 金羿
zh-TW 金羿
zh-ME 金羿羿喵
zh-HK 金 羿
en-GB Eilles Wan
en-US EillesWan
诸葛亮与八卦阵
zh-CN 诸葛亮与八卦阵
zh-TW 諸葛亮與八卦陣
# zh-ME 你自己翻译昂===========
zh-HK 諸葛亮與八卦陣
# en-GB 同上==================
# en-US 同上==================
鸣凤鸽子
zh-CN 鸣凤鸽子
zh-TW 鳴鳳鴿子
zh-HK 鳴鳳 鴿子
# zh-ME 你自己翻译昂===========
en-GB MingFeng Pigeon
en-US MingFengPigeon

Binary file not shown.

View File

@ -1,224 +0,0 @@
{
"mainset": {
"PackName": "RyounTeamSong",
"MusicTitle": "RyounUp",
"IsRepeat": false,
"PlayerSelect": ""
},
"musics": [
{
"set": {
"EntityName": "MusicSupport",
"ScoreboardName": "MusicSupport",
"Instrument": "harp",
"FileName": "RyounUp_RyounTeamSong"
},
"notes": [
[
".5",
1.0
],
[
"1",
1.0
],
[
"1",
1.0
],
[
"3",
1.5
],
[
"3",
0.5
],
[
"2",
1.5
],
[
"1",
0.5
],
[
"2",
1.0
],
[
"5",
1.0
],
[
"3",
1.5
],
[
"2",
0.5
],
[
".6",
1.0
],
[
".5",
1.0
],
[
"3",
1.5
],
[
"2",
0.5
],
[
"1",
1.0
],
[
"5",
1.0
],
[
"5",
1.0
],
[
"6",
0.5
],
[
"5",
0.5
],
[
"3",
1.0
],
[
"5",
0.5
],
[
"3",
0.5
],
[
"2",
1.0
],
[
"2",
1.0
],
[
"3",
0.5
],
[
"2",
0.5
],
[
"1",
1.0
],
[
"1",
1.0
],
[
"3",
1.0
],
[
"3",
1.0
],
[
"5",
1.0
],
[
"0",
1.0
],
[
".5",
0.5
],
[
".6",
0.5
],
[
"1",
1.0
],
[
"1",
1.0
],
[
"6",
1.0
],
[
"1",
1.0
],
[
"2",
1.0
],
[
"3",
1.0
],
[
"3",
1.0
],
[
"3",
1.0
],
[
"3",
1.0
],
[
"2",
1.0
],
[
"5",
1.5
],
[
".5",
0.5
],
[
"1",
1.0
],
[
"1",
1.0
],
[
"0",
1.0
],
[
"0",
1.0
]
]
}
]
}

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

3
测试用/声明.txt Normal file
View File

@ -0,0 +1,3 @@
此处的所有midi文件均为测试使用请于下载后1h内删除。
注意,此处分享的所有资源,其版权均为其原作者所有,此处引用仅供测试。

View File

@ -1,2 +1,2 @@
from msctspt.bugReporter import version
from msctLib.buildIN import version
print(version().__call__())