mirror of
https://github.com/TriM-Organization/Musicreater.git
synced 2025-09-05 20:06:23 +00:00
更新文档及其翻译……,另外对无法批量转换带进度条的bug做了更正……现在批量可以用进度条了
This commit is contained in:
@ -22,8 +22,8 @@ while True:
|
||||
authorname = input('请输入作者:')
|
||||
while True:
|
||||
isProgress = input('*进度条[注]:')
|
||||
if isProgress != '' :
|
||||
if isProgress in ('1','True'):
|
||||
if isProgress != '':
|
||||
if isProgress in ('1', 'True'):
|
||||
isProgress = True
|
||||
elif isProgress in ('0', 'False'):
|
||||
isProgress = False
|
||||
@ -49,7 +49,9 @@ while True:
|
||||
print('输入错误,请重新输入')
|
||||
|
||||
|
||||
def operation(i,):
|
||||
def operation(
|
||||
i,
|
||||
):
|
||||
print(f'正在操作{i}')
|
||||
convertion.convert(midipath + '/' + i, outpath)
|
||||
convertion.toBDXfile_withDelay(
|
||||
@ -65,9 +67,10 @@ def operation(i,):
|
||||
|
||||
if os.path.isdir(midipath):
|
||||
import threading
|
||||
|
||||
for i in os.listdir(midipath):
|
||||
if i.lower().endswith('.mid'):
|
||||
threading.Thread(target=operation,args=(i,)).start()
|
||||
threading.Thread(target=operation, args=(i,)).start()
|
||||
else:
|
||||
convertion.convert(midipath, outpath)
|
||||
convertion.toBDXfile_withDelay(
|
||||
|
Reference in New Issue
Block a user