From 53b30d4b8bcd09d8dba47913336c0aae5f478637 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sat, 1 Nov 2025 04:05:16 -0500 Subject: [PATCH] don't allow multi-ins when mono --- src/gui/gui.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 182e17330..174c705ce 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -868,13 +868,14 @@ void FurnaceGUI::autoDetectSystem() { } } -void FurnaceGUI::setCurIns(int newIns) { curIns=newIns; +void FurnaceGUI::setCurIns(int newIns) { + curIns=newIns; memset(multiIns,-1,7*sizeof(int)); } bool FurnaceGUI::setMultiIns(int newIns) { - // set primary instrument if not set - if (curIns<0) { + // set primary instrument if not set (or if polyphony is mono) + if (curIns<0 || noteInputMode==GUI_NOTE_INPUT_MONO) { setCurIns(newIns); return true; }