Use the normalized CC for modulation

This commit is contained in:
Paul Fd 2020-02-20 23:36:04 +01:00
parent c71a7388c3
commit 4bd32d1b52

View file

@ -120,7 +120,7 @@ public:
T modulate(T value, const CCMap<U>& modifiers, const Range<T>& validRange, const modFunction<T, U>& lambda = addToBase<T>) 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);
}