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>4095) pitch=4095;
return period?
(base*reversePitchTable[pitch])>>10:
(base*pitchTable[pitch])>>10;
((base*(reversePitchTable[pitch]))>>10):
(((base*(pitchTable[pitch]))>>10)*(16+globalPitch))/16;
/*
return period?
base*pow(2,-(double)pitch/(12.0*128.0))/(98.0+globalPitch*6.0)*98.0: