From b70ab64dc147402ea29a047d63b7a9e3c9fe1a85 Mon Sep 17 00:00:00 2001 From: Gordon JC Pearce Date: Tue, 19 Aug 2025 00:15:51 +0100 Subject: [PATCH] maximum key range --- plugin/assigner.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugin/assigner.cpp b/plugin/assigner.cpp index 65ac907..582022c 100644 --- a/plugin/assigner.cpp +++ b/plugin/assigner.cpp @@ -19,7 +19,7 @@ #include "assigner.hpp" #include "generator.hpp" -// #define DEBUG +//#define DEBUG void Assigner::dumpTables() { #ifdef DEBUG @@ -134,9 +134,11 @@ void Assigner::noteOn(uint8_t note) { break; } } - // printf("at end, l=%d e=%d\n", l,e); noteTbl[v] = note; + // limit highest note to C7, one octave above the Solina's maximum range + while(note>96) note -= 12; + voices[v].startNote(note); d_debug("send voice on %3d to voice %d", note, v);