From 885dc085eaffa1991a6238d77ce41731ff8e4b35 Mon Sep 17 00:00:00 2001 From: Eilles Date: Sat, 27 Sep 2025 16:56:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=91=E6=94=B9=E4=BA=86=E5=95=A5=E6=88=91?= =?UTF-8?q?=E9=83=BD=E4=B8=8D=E8=AE=B0=E5=BE=97=E4=BA=86=EF=BC=8C=E4=BD=86?= =?UTF-8?q?=E6=98=AF=E5=90=8C=E6=AD=A5=E4=B8=80=E4=B8=8B=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E5=90=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Musicreater/experiment.py | 2 +- Musicreater/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Musicreater/experiment.py b/Musicreater/experiment.py index 0870118..e359e50 100644 --- a/Musicreater/experiment.py +++ b/Musicreater/experiment.py @@ -955,7 +955,7 @@ class FutureMidiConvertM4(MidiConvert): if not note.percussive: notes_list.extend( - self._linear_note(note, 2.75 / note.get_info("PITCH")) + self._linear_note(note, 2.55 / note.get_info("PITCH")) ) else: notes_list.append(note) diff --git a/Musicreater/utils.py b/Musicreater/utils.py index af5d811..e4c647b 100644 --- a/Musicreater/utils.py +++ b/Musicreater/utils.py @@ -398,7 +398,7 @@ def midi_msgs_to_minenote_using_kami_respack( using_original = False if not percussive_ and (0 <= inst_ <= 119): mc_sound_ID = "{}{}.{}".format( - # inst_, "d" if duration_ < 500_000 else "c", note_ + # inst_, "c" if (duration_ > 1000_000) and (inst_ in (0, 1, 2, 3, 4, 5, 6, 7, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53)) else "d", note_ inst_, "d", note_,