pattern data refactor, part 6

crap
This commit is contained in:
tildearrow 2025-10-15 21:56:04 -05:00
parent 7ba6b3680a
commit 6c804c3674
2 changed files with 3 additions and 2 deletions

View file

@ -2307,6 +2307,7 @@ void DivEngine::noteToSplitNote(short note, short& outNote, short& outOctave) {
case -1:
outNote=0;
outOctave=0;
break;
default:
outNote=note%12;
outOctave=(unsigned char)(note-60)/12;

View file

@ -321,7 +321,7 @@ const char* cmdName[]={
static_assert((sizeof(cmdName)/sizeof(void*))==DIV_CMD_MAX,"update cmdName!");
const char* formatNote(short note) {
static char ret[4];
static char ret[16];
if (note==DIV_NOTE_OFF) {
return "OFF";
} else if (note==DIV_NOTE_REL) {
@ -331,7 +331,7 @@ const char* formatNote(short note) {
} else if (note<0) {
return "---";
}
snprintf(ret,4,"%s%d",notes[note%12],(note-60)/12);
snprintf(ret,16,"%s%d",notes[note%12],(note-60)/12);
return ret;
}