diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/sound/drivers/midi.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/sci/sound/drivers/midi.cpp b/engines/sci/sound/drivers/midi.cpp index 8e65cb96d5..4150ae7ce7 100644 --- a/engines/sci/sound/drivers/midi.cpp +++ b/engines/sci/sound/drivers/midi.cpp @@ -156,7 +156,7 @@ void MidiPlayer_Midi::noteOn(int channel, int note, int velocity) { // Scale velocity; velocity = velocity * _percussionVelocityScale[note] / 127; } else { - int8 keyshift = _keyShift[channel]; + int8 keyshift = _channels[channel].keyShift; int shiftNote = note + keyshift; @@ -687,8 +687,7 @@ void MidiPlayer_Midi::mapMt32ToGm(byte *data, size_t size) { } } - // This is commented out as it seems to do more harm than good - // _keyShift[i] = CLIP<uint8>(keyshift, 0, 48) - 24; + _keyShift[i] = CLIP<uint8>(keyshift, 0, 48) - 24; _pitchBendRange[i] = CLIP<uint8>(bender_range, 0, 24); } |