From 3f326b81fc1620bf8a235320979f8d3297a9bcc3 Mon Sep 17 00:00:00 2001 From: M374LX Date: Tue, 11 Aug 2015 23:47:34 -0300 Subject: [PATCH] Fix #2204 --- plugins/sf2_player/sf2_player.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/sf2_player/sf2_player.cpp b/plugins/sf2_player/sf2_player.cpp index 96ce38b99..1555ddc06 100644 --- a/plugins/sf2_player/sf2_player.cpp +++ b/plugins/sf2_player/sf2_player.cpp @@ -524,6 +524,11 @@ void sf2Instrument::updateSampleRate() updateChorus(); updateReverbOn(); updateChorusOn(); + + // Reset last MIDI pitch properties, which will be set to the correct values + // upon playing the next note + m_lastMidiPitch = -1; + m_lastMidiPitchRange = -1; }