From 755de846c74588110657a88c52241c08f6e34b28 Mon Sep 17 00:00:00 2001 From: EillesWan Date: Mon, 1 May 2023 13:58:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E6=94=B9example?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Musicreater/__init__.py | 2 +- example.py | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) 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)