mirror of
https://github.com/TriM-Organization/Musicreater.git
synced 2025-09-05 20:06:23 +00:00
Merge branch 'pkgver' of https://gitee.com/EillesWan/Musicreater into pkgver
This commit is contained in:
@ -20,9 +20,19 @@ if not os.path.exists(outpath):
|
||||
while True:
|
||||
try:
|
||||
authorname = input('请输入作者:')
|
||||
isProgress = input('是否开启进度条(1|0):')
|
||||
if isProgress != '':
|
||||
isProgress = bool(int(isProgress))
|
||||
while True:
|
||||
isProgress = input('*进度条[注]:')
|
||||
if isProgress != '' :
|
||||
if isProgress in ('1','True'):
|
||||
isProgress = True
|
||||
elif isProgress in ('0', 'False'):
|
||||
isProgress = False
|
||||
else:
|
||||
isProgress = isProgress
|
||||
else:
|
||||
continue
|
||||
break
|
||||
|
||||
volume = input('请输入音量(0-1):')
|
||||
if volume != '':
|
||||
volume = float(volume)
|
||||
@ -35,7 +45,7 @@ while True:
|
||||
heightmax = int(heightmax)
|
||||
break
|
||||
|
||||
except:
|
||||
except BaseException:
|
||||
print('输入错误,请重新输入')
|
||||
|
||||
|
||||
@ -45,7 +55,7 @@ def operation(i,):
|
||||
convertion.toBDXfile_withDelay(
|
||||
1,
|
||||
authorname if authorname != '' else input('请输入作者:'),
|
||||
isProgress if isProgress != '' else bool(int(input('是否开启进度条(1|0):'))),
|
||||
isProgress,
|
||||
heightmax if heightmax != '' else int(input('请输入指令结构最大生成高度:')),
|
||||
volume if volume != '' else float(input('请输入音量(0-1]:')),
|
||||
speed if speed != '' else float(input('请输入速度倍率:')),
|
||||
@ -63,7 +73,7 @@ else:
|
||||
convertion.toBDXfile_withDelay(
|
||||
1,
|
||||
authorname if authorname != '' else input('请输入作者:'),
|
||||
isProgress if isProgress != '' else bool(int(input('是否开启进度条(1|0):'))),
|
||||
isProgress,
|
||||
heightmax if heightmax != '' else int(input('请输入指令结构最大生成高度:')),
|
||||
volume if volume != '' else float(input('请输入音量(0-1]:')),
|
||||
speed if speed != '' else float(input('请输入速度倍率:')),
|
||||
|
Reference in New Issue
Block a user