this stupid effect

This commit is contained in:
tildearrow 2022-03-25 03:18:44 -05:00
parent ed857b20c4
commit 0687a6f217
2 changed files with 3 additions and 3 deletions

View file

@ -836,8 +836,8 @@ int DivEngine::calcFreq(int base, int pitch, bool period, int octave) {
if (pitch<0) pitch=0; if (pitch<0) pitch=0;
if (pitch>4095) pitch=4095; if (pitch>4095) pitch=4095;
return period? return period?
(base*reversePitchTable[pitch])>>10: ((base*(reversePitchTable[pitch]))>>10):
(base*pitchTable[pitch])>>10; (((base*(pitchTable[pitch]))>>10)*(16+globalPitch))/16;
/* /*
return period? return period?
base*pow(2,-(double)pitch/(12.0*128.0))/(98.0+globalPitch*6.0)*98.0: base*pow(2,-(double)pitch/(12.0*128.0))/(98.0+globalPitch*6.0)*98.0:

View file

@ -983,7 +983,7 @@ void DivEngine::processRow(int i, bool afterDelay) {
if (chan[i].pitch<-128) chan[i].pitch=-128; if (chan[i].pitch<-128) chan[i].pitch=-128;
if (chan[i].pitch>127) chan[i].pitch=127; if (chan[i].pitch>127) chan[i].pitch=127;
} }
chan[i].pitch+=globalPitch; //chan[i].pitch+=globalPitch;
dispatchCmd(DivCommand(DIV_CMD_PITCH,i,chan[i].pitch+(((chan[i].vibratoDepth*vibTable[chan[i].vibratoPos]*chan[i].vibratoFine)>>4)/15))); dispatchCmd(DivCommand(DIV_CMD_PITCH,i,chan[i].pitch+(((chan[i].vibratoDepth*vibTable[chan[i].vibratoPos]*chan[i].vibratoFine)>>4)/15)));
break; break;
case 0xea: // legato mode case 0xea: // legato mode