option to change the piano hit key color mode

This commit is contained in:
Eknous-P 2025-12-07 21:31:23 +04:00
parent 9d4da19ab5
commit 19c78955bb
3 changed files with 49 additions and 4 deletions

View file

@ -8390,6 +8390,7 @@ void FurnaceGUI::syncState() {
pianoView=e->getConfInt("pianoView",pianoView);
pianoInputPadMode=e->getConfInt("pianoInputPadMode",pianoInputPadMode);
pianoLabelsMode=e->getConfInt("pianoLabelsMode",pianoLabelsMode);
pianoKeyColorMode=e->getConfInt("pianoKeyColorMode",pianoKeyColorMode);
chanOscCols=e->getConfInt("chanOscCols",3);
chanOscAutoCols=e->getConfBool("chanOscAutoColsType",0);
@ -8563,6 +8564,7 @@ void FurnaceGUI::commitState(DivConfig& conf) {
conf.set("pianoView",pianoView);
conf.set("pianoInputPadMode",pianoInputPadMode);
conf.set("pianoLabelsMode",pianoLabelsMode);
conf.set("pianoKeyColorMode",pianoKeyColorMode);
// commit per-chan osc state
conf.set("chanOscCols",chanOscCols);
@ -9252,6 +9254,7 @@ FurnaceGUI::FurnaceGUI():
pianoView(PIANO_LAYOUT_AUTOMATIC),
pianoInputPadMode(PIANO_INPUT_PAD_SPLIT_AUTO),
pianoLabelsMode(PIANO_LABELS_OCTAVE),
pianoKeyColorMode(PIANO_KEY_COLOR_SINGLE),
#else
pianoOctaves(7),
pianoOctavesEdit(4),
@ -9263,6 +9266,7 @@ FurnaceGUI::FurnaceGUI():
pianoView(PIANO_LAYOUT_STANDARD),
pianoInputPadMode(PIANO_INPUT_PAD_DISABLE),
pianoLabelsMode(PIANO_LABELS_OCTAVE),
pianoKeyColorMode(PIANO_KEY_COLOR_SINGLE),
#endif
hasACED(false),
waveGenBaseShape(0),