fix porta up/down

This commit is contained in:
tildearrow 2021-05-18 01:37:14 -05:00
parent b2908413fe
commit 38b16fe5ae
1 changed files with 2 additions and 2 deletions

View File

@ -217,11 +217,11 @@ void DivEngine::processRow(int i, bool afterDelay) {
case 0xe1: // portamento up
chan[i].portaNote=chan[i].note+(effectVal&15);
chan[i].portaSpeed=(effectVal>>4)*3;
chan[i].portaSpeed=(effectVal>>4)*4;
break;
case 0xe2: // portamento down
chan[i].portaNote=chan[i].note-(effectVal&15);
chan[i].portaSpeed=(effectVal>>4)*3;
chan[i].portaSpeed=(effectVal>>4)*4;
break;
case 0xe5: // pitch
chan[i].pitch=effectVal-0x80;