fix porta up/down
This commit is contained in:
parent
b2908413fe
commit
38b16fe5ae
|
@ -217,11 +217,11 @@ void DivEngine::processRow(int i, bool afterDelay) {
|
||||||
|
|
||||||
case 0xe1: // portamento up
|
case 0xe1: // portamento up
|
||||||
chan[i].portaNote=chan[i].note+(effectVal&15);
|
chan[i].portaNote=chan[i].note+(effectVal&15);
|
||||||
chan[i].portaSpeed=(effectVal>>4)*3;
|
chan[i].portaSpeed=(effectVal>>4)*4;
|
||||||
break;
|
break;
|
||||||
case 0xe2: // portamento down
|
case 0xe2: // portamento down
|
||||||
chan[i].portaNote=chan[i].note-(effectVal&15);
|
chan[i].portaNote=chan[i].note-(effectVal&15);
|
||||||
chan[i].portaSpeed=(effectVal>>4)*3;
|
chan[i].portaSpeed=(effectVal>>4)*4;
|
||||||
break;
|
break;
|
||||||
case 0xe5: // pitch
|
case 0xe5: // pitch
|
||||||
chan[i].pitch=effectVal-0x80;
|
chan[i].pitch=effectVal-0x80;
|
||||||
|
|
Loading…
Reference in a new issue