mirror of
https://github.com/eliasstepanik/strudel.git
synced 2026-01-11 05:38:35 +00:00
simplify
This commit is contained in:
parent
0b1bc74c3b
commit
95b1548e5f
@ -117,7 +117,7 @@ function normalize(value = 0, min = 0, max = 1, exp = 1) {
|
||||
return Math.pow(normalized, exp);
|
||||
}
|
||||
function mapCC(mapping, value) {
|
||||
const ccs = Array.isArray(value.cc) ? value.cc : [];
|
||||
const ccs = [];
|
||||
const matches = Object.entries(value).filter(([key]) => !!mapping[getControlName(key)]);
|
||||
matches.forEach((match) => {
|
||||
const control = match[0];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user