fixed more bugs yay

This commit is contained in:
AArt1256 2024-08-09 12:09:11 +03:00
parent 6998bfe5cc
commit 9b363eb04c
2 changed files with 9 additions and 3 deletions

View file

@ -353,6 +353,13 @@ int DivPlatformSupervision::dispatch(DivCommand c) {
chan[c.chan].hasOffset=c.value;
chan[c.chan].keyOn=true;
break;
case DIV_CMD_PANNING: {
chan[c.chan].pan=0;
if (c.value&0xf0) chan[c.chan].pan|=2;
if (c.value2>>4) chan[c.chan].pan|=1;
if (chan[c.chan].pan==0) chan[c.chan].pan=3;
break;
}
case DIV_CMD_LEGATO:
chan[c.chan].baseFreq=NOTE_PERIODIC(c.value+chan[c.chan].sampleNoteDelta+((HACKY_LEGATO_MESS)?(chan[c.chan].std.arp.val):(0)));
chan[c.chan].freqChanged=true;
@ -449,13 +456,13 @@ void DivPlatformSupervision::notifyInsDeletion(void* ins) {
}
void DivPlatformSupervision::setFlags(const DivConfig& flags) {
if (flags.getInt("swapDuty",0)) {
if (flags.getInt("swapDuty",true)) {
duty_swap=1;
} else {
duty_swap=0;
}
otherFlags=0;
if (flags.getInt("sqStereo",0)) {
if (flags.getInt("sqStereo",false)) {
otherFlags |= 1;
}
chipClock=4000000;

View file

@ -7415,7 +7415,6 @@ void FurnaceGUI::drawInsEdit() {
macroList.push_back(FurnaceGUIMacroDesc(_("Duty/Noise"),&ins->std.dutyMacro,0,3,160,uiColors[GUI_COLOR_MACRO_NOISE]));
macroList.push_back(FurnaceGUIMacroDesc(_("Panning"),&ins->std.panLMacro,0,2,32,uiColors[GUI_COLOR_MACRO_OTHER],false,NULL,NULL,true,panBits));
macroList.push_back(FurnaceGUIMacroDesc(_("Pitch"),&ins->std.pitchMacro,-2048,2047,160,uiColors[GUI_COLOR_MACRO_PITCH],true,macroRelativeMode));
macroList.push_back(FurnaceGUIMacroDesc(_("Phase Reset"),&ins->std.phaseResetMacro,0,1,32,uiColors[GUI_COLOR_MACRO_OTHER],false,NULL,NULL,true));
break;
case DIV_INS_SM8521:
macroList.push_back(FurnaceGUIMacroDesc(_("Volume"),&ins->std.volMacro,0,31,160,uiColors[GUI_COLOR_MACRO_VOLUME]));