diff --git a/Musicreater/__init__.py b/Musicreater/__init__.py index 80ac5e6..15ae47e 100644 --- a/Musicreater/__init__.py +++ b/Musicreater/__init__.py @@ -19,6 +19,6 @@ Terms & Conditions: ../License.md from .main import * -__version__ = "0.5.1" +__version__ = "0.5.1.1" __all__ = [] __author__ = (("金羿", "Eilles Wan"), ("诸葛亮与八卦阵", "bgArray"), ("鸣凤鸽子", "MingFengPigeon")) diff --git a/example.py b/example.py index b51e155..00f0fe4 100644 --- a/example.py +++ b/example.py @@ -113,7 +113,7 @@ else: if args: 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} :") @@ -123,7 +123,11 @@ if debug: json.dump(conversion.toDICT(), f) f.write(5 * "\n") 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 else ( conversion.to_BDX_file(convert_method, *prompts)