- Fixed: OPLMIDIDevice sent the wrong pitch wheel value to the player code.

Missimp.mid sounds a lot better now, though still a little off.
- Fixed: MIDI files that had ticks with nothing but meta-events did not play
  properly. (fixes sonic3_finalboss.mid)


SVN r868 (trunk)
This commit is contained in:
Randy Heit 2008-03-30 02:51:34 +00:00
commit f23e9df084
6 changed files with 71 additions and 42 deletions

View file

@ -92,7 +92,8 @@ int musicBlock::playTick()
OPLplayNote(channel, note, -1);
} break;
case 2: // pitch wheel
OPLpitchWheel(channel, *score++);
// MUS pitch wheel is 8 bits, but MIDI is 14
OPLpitchWheel(channel, *score++ << (14 - 8));
break;
case 3: // system event (valueless controller)
OPLchangeControl(channel, *score++, 0);