mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-05 04:15:05 +00:00
this stupid effect
This commit is contained in:
parent
ed857b20c4
commit
0687a6f217
2 changed files with 3 additions and 3 deletions
|
@ -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:
|
||||
|
|
|
@ -983,7 +983,7 @@ void DivEngine::processRow(int i, bool afterDelay) {
|
|||
if (chan[i].pitch<-128) chan[i].pitch=-128;
|
||||
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)));
|
||||
break;
|
||||
case 0xea: // legato mode
|
||||
|
|
Loading…
Reference in a new issue