mirror of
https://github.com/eliasstepanik/strudel.git
synced 2026-01-11 13:48:40 +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);
|
return Math.pow(normalized, exp);
|
||||||
}
|
}
|
||||||
function mapCC(mapping, value) {
|
function mapCC(mapping, value) {
|
||||||
const ccs = Array.isArray(value.cc) ? value.cc : [];
|
const ccs = [];
|
||||||
const matches = Object.entries(value).filter(([key]) => !!mapping[getControlName(key)]);
|
const matches = Object.entries(value).filter(([key]) => !!mapping[getControlName(key)]);
|
||||||
matches.forEach((match) => {
|
matches.forEach((match) => {
|
||||||
const control = match[0];
|
const control = match[0];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user