chanOsc note name
This commit is contained in:
parent
24e7d4b9ce
commit
20ea5827cf
|
@ -304,6 +304,7 @@ void FurnaceGUI::drawChanOsc() {
|
||||||
"- %C: channel short name\n"
|
"- %C: channel short name\n"
|
||||||
"- %d: channel number (starting from 0)\n"
|
"- %d: channel number (starting from 0)\n"
|
||||||
"- %D: channel number (starting from 1)\n"
|
"- %D: channel number (starting from 1)\n"
|
||||||
|
"- %n: channel note\n"
|
||||||
"- %i: instrument name\n"
|
"- %i: instrument name\n"
|
||||||
"- %I: instrument number (decimal)\n"
|
"- %I: instrument number (decimal)\n"
|
||||||
"- %x: instrument number (hex)\n"
|
"- %x: instrument number (hex)\n"
|
||||||
|
@ -539,6 +540,12 @@ void FurnaceGUI::drawChanOsc() {
|
||||||
text+=fmt::sprintf("%.2X",chanState->volume>>8);
|
text+=fmt::sprintf("%.2X",chanState->volume>>8);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case 'n': {
|
||||||
|
DivChannelState* chanState=e->getChanState(ch);
|
||||||
|
if (chanState==NULL || !(chanState->keyOn)) break;
|
||||||
|
text+=fmt::sprintf("%s",noteName(short (chanState->note),0));
|
||||||
|
break;
|
||||||
|
}
|
||||||
case '%':
|
case '%':
|
||||||
text+='%';
|
text+='%';
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue