diff options
author | Wohlstand <admin@wohlnet.ru> | 2020-09-03 00:46:53 +0300 |
---|---|---|
committer | Wohlstand <admin@wohlnet.ru> | 2020-09-03 00:46:53 +0300 |
commit | add55f65c5727bfab338be16e6548f9af8756048 (patch) | |
tree | 3955e14974ffacab98a7939e1c23fb637c68fc30 /src/adlmidi_midiplay.cpp | |
parent | 9d34329f81f9d2588c27d828aaaf3a3d5f222da3 (diff) | |
download | libADLMIDI-add55f65c5727bfab338be16e6548f9af8756048.tar.gz libADLMIDI-add55f65c5727bfab338be16e6548f9af8756048.tar.bz2 libADLMIDI-add55f65c5727bfab338be16e6548f9af8756048.zip |
Fixed an incorrect logic of CC121
Issue #227
Diffstat (limited to 'src/adlmidi_midiplay.cpp')
-rw-r--r-- | src/adlmidi_midiplay.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/adlmidi_midiplay.cpp b/src/adlmidi_midiplay.cpp index 358e284..a7fb4ed 100644 --- a/src/adlmidi_midiplay.cpp +++ b/src/adlmidi_midiplay.cpp @@ -187,6 +187,7 @@ void MIDIplay::partialReset() synth.reset(m_setup.emulator, m_setup.PCM_RATE, this); m_chipChannels.clear(); m_chipChannels.resize((size_t)synth.m_numChannels); + resetMIDIDefaults(); } void MIDIplay::resetMIDI() @@ -774,7 +775,7 @@ void MIDIplay::realTime_Controller(uint8_t channel, uint8_t type, uint8_t value) break; case 121: // Reset all controllers - m_midiChannels[channel].resetAllControllers(); + m_midiChannels[channel].resetAllControllers121(); noteUpdateAll(channel, Upd_Pan + Upd_Volume + Upd_Pitch); // Kill all sustained notes killSustainingNotes(channel, -1, AdlChannel::LocationData::Sustain_ANY); |