From add55f65c5727bfab338be16e6548f9af8756048 Mon Sep 17 00:00:00 2001 From: Wohlstand Date: Thu, 3 Sep 2020 00:46:53 +0300 Subject: Fixed an incorrect logic of CC121 Issue #227 --- src/adlmidi_midiplay.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/adlmidi_midiplay.cpp') 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); -- cgit v1.2.3