pattern data refactor, part 6
crap
This commit is contained in:
parent
7ba6b3680a
commit
6c804c3674
2 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue