Use the normalized CC for modulation
This commit is contained in:
parent
c71a7388c3
commit
4bd32d1b52
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
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) {
|
for (auto& mod: modifiers) {
|
||||||
lambda(value, getCCValue(mod.first) * mod.second);
|
lambda(value, normalizeCC(getCCValue(mod.first)) * mod.second);
|
||||||
}
|
}
|
||||||
return validRange.clamp(value);
|
return validRange.clamp(value);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue