Merge pull request #2251 from M374LX/iss2204

Fix SF2 pitch and gain problems
This commit is contained in:
Tres Finocchiaro
2015-08-17 15:30:59 -04:00

View File

@@ -483,7 +483,6 @@ void sf2Instrument::updateSampleRate()
// synth program change (set bank and patch)
updatePatch();
updateGain();
}
else
{
@@ -524,6 +523,12 @@ 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
m_lastMidiPitch = -1;
m_lastMidiPitchRange = -1;
}