From bf173a9f81ed2488b156769a653c4de94d91e9f6 Mon Sep 17 00:00:00 2001 From: Eilles Date: Thu, 8 Jan 2026 03:18:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B2=A1=E6=9C=89=E5=8F=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Musicreater/data.py | 4 ++++ example_singleConvert.py | 8 +++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Musicreater/data.py b/Musicreater/data.py index f124868..ca80427 100644 --- a/Musicreater/data.py +++ b/Musicreater/data.py @@ -415,3 +415,7 @@ class SingleTrack(list): def get_info(self, key: str, default: Any = None) -> Any: """获取附加信息""" return self.extra_info.get(key, default) + + +class SingleMusic: + pass diff --git a/example_singleConvert.py b/example_singleConvert.py index 795ea3c..dd7757e 100644 --- a/example_singleConvert.py +++ b/example_singleConvert.py @@ -1,11 +1,13 @@ import Musicreater import Musicreater.plugin -import Musicreater.plugin.addonpack +import Musicreater.plugin.mcstructfile print( - Musicreater.plugin.addonpack.to_addon_pack_in_repeater_divided_by_instrument( + Musicreater.plugin.mcstructfile.to_mcstructure_file_in_delay( Musicreater.MidiConvert.from_midi_file( - input("midi路径:"), old_exe_format=False + input("midi路径:"), + old_exe_format=False, + # note_table_replacement={"note.harp": "note.flute"}, ), input("输出路径:"), # Musicreater.plugin.ConvertConfig(input("输出路径:"),),