From 4f104b0da960700718248a3c7a417fe4f2dfc873 Mon Sep 17 00:00:00 2001 From: Vitaly Novichkov Date: Thu, 22 Mar 2018 21:53:27 +0300 Subject: [PATCH] Fixed incorrect pitch processing in the ADLMIDI --- src/sound/mididevices/music_adlmidi_mididevice.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/sound/mididevices/music_adlmidi_mididevice.cpp b/src/sound/mididevices/music_adlmidi_mididevice.cpp index 615f0acd9c..8a4b97d5bf 100644 --- a/src/sound/mididevices/music_adlmidi_mididevice.cpp +++ b/src/sound/mididevices/music_adlmidi_mididevice.cpp @@ -75,8 +75,6 @@ ADLMIDIDevice::ADLMIDIDevice(const char *args) if (Renderer != nullptr) { adl_setBank(Renderer, 14); - //! Set 16'th channel be percussive (XG way) - adl_rt_bankChange(Renderer, 0x0F, 0x7F00); } } @@ -109,8 +107,6 @@ int ADLMIDIDevice::Open(MidiCallback callback, void *userdata) if (ret == 0) { adl_rt_resetState(Renderer); - //! Set 16'th channel be percussive (XG way) - adl_rt_bankChange(Renderer, 0x0F, 0x7F00); } return ret; } @@ -153,7 +149,7 @@ void ADLMIDIDevice::HandleEvent(int status, int parm1, int parm2) break; case ME_PITCHWHEEL: - adl_rt_pitchBend(Renderer, chan, parm1 | (parm2 << 7)); + adl_rt_pitchBendML(Renderer, chan, parm2, parm1); break; } }