Fix for Bug [817242] ALL: MT-32 to GM key velocity conversion

Implemented dynamic range matching for MT-32 tracks
routed to GM output devices.

svn-id: r10573
This commit is contained in:
Jamieson Christian 2003-10-03 19:32:18 +00:00
parent 056974821a
commit 5fa23e5fee

View File

@ -242,6 +242,8 @@ void Player::send(uint32 b) {
case 0x9: // Key On
if (!_scanning) {
if (_isMT32 && !_se->isNativeMT32())
param2 = (((param2 * 3) >> 2) + 32) & 0x7F;
if ((part = getPart(chan)) != 0)
part->noteOn(param1, param2);
} else {