From c6189bfcb1b902bbdc1a31a2f72a1e4e0cddaec1 Mon Sep 17 00:00:00 2001 From: probonopd Date: Sun, 5 Nov 2023 18:33:35 +0100 Subject: [PATCH] Fix split mode [ci skip] --- performance_dx5.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/performance_dx5.py b/performance_dx5.py index 0a871f2..27b4de8 100644 --- a/performance_dx5.py +++ b/performance_dx5.py @@ -259,7 +259,10 @@ for i in range(0, 64): output_lines.append("Cutoff1=99") output_lines.append("Resonance1=0") output_lines.append("NoteLimitLow1=0") - output_lines.append("NoteLimitHigh1=127") + if modes[i] == "dual": + output_lines.append("NoteLimitHigh1=127") + elif modes[i] == "split": + output_lines.append("NoteLimitHigh1=36") output_lines.append("NoteShift1=0") output_lines.append("ReverbSend1=99") output_lines.append("PitchBendRange1=2") @@ -290,11 +293,7 @@ for i in range(0, 64): output_lines.append("NoteLimitLow2=0") elif modes[i] == "split": output_lines.append("NoteLimitLow2=37") - output_lines.append("NoteLimitLow2=0") - if modes[i] == "dual": - output_lines.append("NoteLimitHigh2=127") - elif modes[i] == "split": - output_lines.append("NoteLimitHigh2=36") + output_lines.append("NoteLimitHigh2=127") output_lines.append("NoteShift2=0") output_lines.append("ReverbSend2=99") output_lines.append("PitchBendRange2=2")