Apply centsFactor at the other site where necessary

This commit is contained in:
Jean Pierre Cimalando 2020-06-20 16:16:18 +02:00
parent 997ae597c3
commit 59c66b909f

View file

@ -124,7 +124,7 @@ void sfz::Voice::startVoice(Region* region, int delay, int number, float value,
baseFrequency = resources.tuning.getFrequencyOfKey(number);
bendStepFactor = centsFactor(region->bendStep);
bendSmoother.setSmoothing(region->bendSmooth, sampleRate);
bendSmoother.reset(region->getBendInCents(resources.midiState.getPitchBend()));
bendSmoother.reset(centsFactor(region->getBendInCents(resources.midiState.getPitchBend())));
egEnvelope.reset(region->amplitudeEG, *region, resources.midiState, delay, value, sampleRate);
for (auto& modId : allModifiers) {