diff --git a/src/engine/platform/pv1000.cpp b/src/engine/platform/pv1000.cpp index d7b5cf4d..e9e1b3c2 100644 --- a/src/engine/platform/pv1000.cpp +++ b/src/engine/platform/pv1000.cpp @@ -53,7 +53,7 @@ void DivPlatformPV1000::tick(bool sysTick) { if (chan[i].std.vol.had) { chan[i].outVol=VOL_SCALE_LINEAR(chan[i].std.vol.val,chan[i].vol,1); if (chan[i].outVol<0) chan[i].outVol=0; - chan[i].writeVol=true; + chan[i].freqChanged=true; } if (NEW_ARP_STRAT) { chan[i].handleArp(); @@ -90,12 +90,6 @@ void DivPlatformPV1000::tick(bool sysTick) { chan[i].freqChanged=false; } } - for (int i=0; i<3; i++) { - if (chan[i].writeVol) { - rWrite(i,(isMuted[i] || (chan[i].outVol<=0)) ? 0 : chan[i].freq); - chan[i].writeVol=false; - } - } } int DivPlatformPV1000::dispatch(DivCommand c) { @@ -108,7 +102,6 @@ int DivPlatformPV1000::dispatch(DivCommand c) { chan[c.chan].note=c.value; } chan[c.chan].active=true; - chan[c.chan].writeVol=true; chan[c.chan].keyOn=true; chan[c.chan].macroInit(ins); break; @@ -134,7 +127,7 @@ int DivPlatformPV1000::dispatch(DivCommand c) { chan[c.chan].outVol=c.value; } if (chan[c.chan].active) { - chan[c.chan].writeVol=true; + chan[c.chan].freqChanged=true; } } break; @@ -204,7 +197,7 @@ void DivPlatformPV1000::muteChannel(int ch, bool mute) { chan[ch].keyOff=true; } else if (chan[ch].active) { chan[ch].keyOn=true; - chan[ch].writeVol=true; + chan[ch].freqChanged=true; } } diff --git a/src/engine/platform/pv1000.h b/src/engine/platform/pv1000.h index 8ad463f1..953709ab 100644 --- a/src/engine/platform/pv1000.h +++ b/src/engine/platform/pv1000.h @@ -26,10 +26,8 @@ class DivPlatformPV1000: public DivDispatch { struct Channel: public SharedChannel { - bool writeVol; Channel(): - SharedChannel(1), - writeVol(false) {} + SharedChannel(1) {} }; Channel chan[3]; DivDispatchOscBuffer* oscBuf[3]; diff --git a/src/gui/debug.cpp b/src/gui/debug.cpp index 24714819..49d568b3 100644 --- a/src/gui/debug.cpp +++ b/src/gui/debug.cpp @@ -1081,7 +1081,6 @@ void putDispatchChan(void* data, int chanNum, int type) { ImGui::Text("> PV1000"); COMMON_CHAN_DEBUG; COMMON_CHAN_DEBUG_BOOL; - ImGui::TextColored(ch->writeVol?colorOn:colorOff,">> WriteVol"); break; } default: