From 6cb451abbec49cac36395eb12e84b6284e9b923d Mon Sep 17 00:00:00 2001 From: Alexandre Almeida Date: Wed, 12 Aug 2015 21:30:05 -0300 Subject: [PATCH] Fix SF2 gain problems when exporting Fix the SF2 gain problems that persisted in issue #2204 --- plugins/sf2_player/sf2_player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/sf2_player/sf2_player.cpp b/plugins/sf2_player/sf2_player.cpp index 1555ddc06..07c4a0e04 100644 --- a/plugins/sf2_player/sf2_player.cpp +++ b/plugins/sf2_player/sf2_player.cpp @@ -483,7 +483,6 @@ void sf2Instrument::updateSampleRate() // synth program change (set bank and patch) updatePatch(); - updateGain(); } else { @@ -524,6 +523,7 @@ void sf2Instrument::updateSampleRate() updateChorus(); updateReverbOn(); updateChorusOn(); + updateGain(); // Reset last MIDI pitch properties, which will be set to the correct values // upon playing the next note