From 57a12781ea3a6c0b8653397e6e0421e9a65e0cc4 Mon Sep 17 00:00:00 2001 From: LTVA1 <87536432+LTVA1@users.noreply.github.com> Date: Tue, 5 Dec 2023 18:18:47 +0300 Subject: [PATCH] Support OpenMPT note off and note release --- src/gui/editing.cpp | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/gui/editing.cpp b/src/gui/editing.cpp index dbad0d634..ebb639934 100644 --- a/src/gui/editing.cpp +++ b/src/gui/editing.cpp @@ -1047,7 +1047,23 @@ void FurnaceGUI::doPasteOpenMPT(PasteMode mode, int arg, bool readClipboard, Str { if (!decodeNote(note,pat->data[j][0],pat->data[j][1])) { - invalidData=true; + if(strcmp(note, "^^^") == 0) + { + pat->data[j][0]=100; + pat->data[j][1]=0; + } + + else if(strcmp(note, "~~~") == 0 || strcmp(note, "===")) + { + pat->data[j][0]=101; + pat->data[j][1]=0; + } + + else + { + invalidData=true; + } + break; }