From 4bd32d1b5264ea237a7e711999cac5d969bbea4b Mon Sep 17 00:00:00 2001 From: Paul Fd Date: Thu, 20 Feb 2020 23:36:04 +0100 Subject: [PATCH] Use the normalized CC for modulation --- src/sfizz/MidiState.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sfizz/MidiState.h b/src/sfizz/MidiState.h index a6183f0d..afba37c8 100644 --- a/src/sfizz/MidiState.h +++ b/src/sfizz/MidiState.h @@ -120,7 +120,7 @@ public: T modulate(T value, const CCMap& modifiers, const Range& validRange, const modFunction& lambda = addToBase) const noexcept { for (auto& mod: modifiers) { - lambda(value, getCCValue(mod.first) * mod.second); + lambda(value, normalizeCC(getCCValue(mod.first)) * mod.second); } return validRange.clamp(value); }