Skip to content

Commit

Permalink
Merged in jpcima/opl3-synth-driver/fix-pitchbend (pull request #3)
Browse files Browse the repository at this point in the history
fix negative pitch bend

Approved-by: James Alan Nguyen <[email protected]>
  • Loading branch information
jpcima authored and djtuBIG-MaliceX committed Mar 6, 2018
2 parents 9dd29cd + 75470e3 commit 38d9815
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions driver/src/OPLSynth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -317,10 +317,13 @@ void
break;

case 0xe0: // pitch bend
{
LONG iBend;
dwTemp = ((WORD)bNote << 0) | ((WORD)bVelocity << 7);
dwTemp -= 0x2000;
Opl3_PitchBend(bChannel, (long)dwTemp);
iBend = (LONG)dwTemp - 0x2000;
Opl3_PitchBend(bChannel, iBend);
break;
}
};
return;
}
Expand Down

0 comments on commit 38d9815

Please sign in to comment.