Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SCUMM: Fix Sam & Max OPL3 pitch bend
The pitch bend in Sam & Max was exaggerated when using the OPL3 driver. The OPL3 functionality was apparently implemented by examining just the original driver code and not the MIDI processing code in the interpreter. The pitch bend values sent to the driver are not standard MIDI pitch bend values, but have been processed by the interpreter, so the driver logic cannot be directly applied to the pitch bend values from the MIDI data. This commit fixes the pitch bend calculations to produce the same results as the original interpreter. It also restores the pitch bend range functionality. This was disabled for OPL3, probably because it is implemented in the interpreter instead of the driver. It is used in several Sam & Max MIDI tracks.
- Loading branch information