fix note interpolation

This commit is contained in:
Eknous-P 2025-10-21 15:08:21 +04:00
parent 6569477706
commit 1d393f6300
2 changed files with 1 additions and 1 deletions

View file

@ -1395,7 +1395,7 @@ void FurnaceGUI::doInterpolate() {
for (int k=0, k_p=curPoint.first; k<distance; k++) {
DivPattern* pat=e->curPat[iCoarse].getPattern(e->curOrders->ord[iCoarse][(k_p>>8)&0xff],true);
int val=curPoint.second+((nextPoint.second-curPoint.second)*(double)k/(double)distance);
pat->newData[k_p&0xff][DIV_PAT_NOTE]=val%12;
pat->newData[k_p&0xff][DIV_PAT_NOTE]=val;
k_p++;
if ((k_p&0xff)>=e->curSubSong->patLen) {
k_p&=~0xff;