remove unused globalPitch variable

This commit is contained in:
tildearrow 2025-10-22 14:25:03 -05:00
parent 4d56e72278
commit d2f7c49aa4
3 changed files with 2 additions and 11 deletions

View file

@ -1465,12 +1465,6 @@ void DivEngine::processRow(int i, bool afterDelay) {
extValuePresent=true;
dispatchCmd(DivCommand(DIV_CMD_EXTERNAL,i,effectVal));
break;
case 0xef: // global pitch
// this is a legacy effect that only works in partial pitch linearity.
// it adds to the global pitch but results in crazy frequency errors if this is too high.
// it is hidden from the GUI and will be removed once partial pitch linearity is obliterated from Furnace.
globalPitch+=(signed char)(effectVal-0x80);
break;
case 0xf0: // set Hz by tempo
// the resulting tick rate is effectVal*2/5
// 125 BPM = 50Hz; 150 BPM = 60Hz...