小改example

This commit is contained in:
EillesWan 2023-05-01 13:58:11 +08:00
parent cb95c51a47
commit 755de846c7
2 changed files with 7 additions and 3 deletions

View File

@ -19,6 +19,6 @@ Terms & Conditions: ../License.md
from .main import * from .main import *
__version__ = "0.5.1" __version__ = "0.5.1.1"
__all__ = [] __all__ = []
__author__ = (("金羿", "Eilles Wan"), ("诸葛亮与八卦阵", "bgArray"), ("鸣凤鸽子", "MingFengPigeon")) __author__ = (("金羿", "Eilles Wan"), ("诸葛亮与八卦阵", "bgArray"), ("鸣凤鸽子", "MingFengPigeon"))

View File

@ -113,7 +113,7 @@ else:
if args: if args:
prompts.append(args[1](input(args[0]))) prompts.append(args[1](input(args[0])))
conversion = Musicreater.midiConvert(debug=debug) conversion = Musicreater.midiConvert(debug=debug, enable_old_exe_format=False)
print(f"正在处理 {midi_path} ") print(f"正在处理 {midi_path} ")
@ -123,7 +123,11 @@ if debug:
json.dump(conversion.toDICT(), f) json.dump(conversion.toDICT(), f)
f.write(5 * "\n") f.write(5 * "\n")
conversion_result = ( conversion_result = (
conversion.to_mcpack(convert_method, *prompts) (
conversion.to_mcpack(convert_method, *prompts)
if playerFormat == 1
else conversion.to_mcpack_with_delay(convert_method, *prompts)
)
if fileFormat == 0 if fileFormat == 0
else ( else (
conversion.to_BDX_file(convert_method, *prompts) conversion.to_BDX_file(convert_method, *prompts)