mirror of
https://github.com/TriM-Organization/Musicreater.git
synced 2026-01-25 05:02:02 +00:00
Merge branch 'pkgver' of https://gitee.com/EillesWan/Musicreater into pkgver
This commit is contained in:
@@ -26,7 +26,6 @@ Musicreater Package Version : Demo for Midi Conversion
|
||||
limitations under the License.
|
||||
"""
|
||||
|
||||
|
||||
from msctPkgver.main import *
|
||||
import os
|
||||
|
||||
@@ -80,15 +79,14 @@ while True:
|
||||
if isAutoReset != '':
|
||||
isAutoReset = bool(int(isAutoReset))
|
||||
break
|
||||
except:
|
||||
except BaseException:
|
||||
print('输入错误,请重新输入')
|
||||
|
||||
|
||||
if os.path.isdir(midipath):
|
||||
for i in os.listdir(midipath):
|
||||
if i.lower().endswith('.mid'):
|
||||
print(f'正在操作{i}')
|
||||
convertion.convert(midipath + '/' + i, outpath + '/' + i[:-4] )
|
||||
convertion.convert(midipath + '/' + i, outpath + '/' + i[:-4])
|
||||
if outFormat == 0:
|
||||
convertion.tomcpack(
|
||||
1,
|
||||
|
||||
Reference in New Issue
Block a user