pattern data refactor, part 7

This commit is contained in:
tildearrow 2025-10-16 05:11:09 -05:00
parent 6c804c3674
commit 2b745cac62
6 changed files with 212 additions and 338 deletions

View file

@ -902,10 +902,8 @@ void FurnaceGUI::drawChanOsc() {
case 'n': {
DivChannelState* chanState=e->getChanState(ch);
if (chanState==NULL || !(chanState->keyOn)) break;
short tempNote=chanState->note; //all of this conversion is necessary because notes 100-102 are special chars
short noteMod=tempNote%12+12; //also note 0 is a BUG, hence +12 on the note and -1 on the octave
short oct=tempNote/12-1;
text+=fmt::sprintf("%s",noteName(noteMod,oct));
// no more conversion necessary after the note/octave unification :>
text+=fmt::sprintf("%s",noteName(chanState->note));
break;
}
case 'l': {