mirror of
https://github.com/TriM-Organization/Musicreater.git
synced 2024-11-14 11:27:42 +08:00
我再更新一些小东西
This commit is contained in:
parent
2340741bb9
commit
ce1099a246
Binary file not shown.
@ -14,6 +14,9 @@ while True:
|
|||||||
|
|
||||||
outpath = input('请输入输出路径:')
|
outpath = input('请输入输出路径:')
|
||||||
|
|
||||||
|
if not os.path.exists(outpath):
|
||||||
|
os.makedirs(outpath)
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
outFormat = int(input('请输入输出格式(0:mcpack|1:BDX结构):'))
|
outFormat = int(input('请输入输出格式(0:mcpack|1:BDX结构):'))
|
||||||
@ -58,6 +61,7 @@ while True:
|
|||||||
if os.path.isdir(midipath):
|
if os.path.isdir(midipath):
|
||||||
for i in os.listdir(midipath):
|
for i in os.listdir(midipath):
|
||||||
if i.endswith('.mid'):
|
if i.endswith('.mid'):
|
||||||
|
print(f'正在操作{i}')
|
||||||
convertion.convert(midipath + '/' + i, outpath + '/' + i[:-4] + '.mcpack')
|
convertion.convert(midipath + '/' + i, outpath + '/' + i[:-4] + '.mcpack')
|
||||||
if outFormat == 0:
|
if outFormat == 0:
|
||||||
convertion.tomcpack(
|
convertion.tomcpack(
|
||||||
|
Loading…
Reference in New Issue
Block a user