maximum key range

This commit is contained in:
Gordon JC Pearce 2025-08-19 00:15:51 +01:00
parent 750b43f6c5
commit b70ab64dc1
1 changed files with 4 additions and 2 deletions

View File

@ -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);