remove midimap JSDoc
This commit is contained in:
parent
f802f18d68
commit
b98ebc696d
2 changed files with 2 additions and 6 deletions
|
|
@ -1622,12 +1622,7 @@ export const ar = register('ar', (t, pat) => {
|
||||||
*/
|
*/
|
||||||
export const { midichan } = registerControl('midichan');
|
export const { midichan } = registerControl('midichan');
|
||||||
|
|
||||||
/**
|
|
||||||
* MIDI map: Sets the MIDI map for the event.
|
|
||||||
*
|
|
||||||
* @name midimap
|
|
||||||
* @param {Object} map MIDI map
|
|
||||||
*/
|
|
||||||
export const { midimap } = registerControl('midimap');
|
export const { midimap } = registerControl('midimap');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -178,6 +178,7 @@ function normalize(value = 0, min = 0, max = 1, exp = 1) {
|
||||||
normalized = Math.min(1, Math.max(0, normalized));
|
normalized = Math.min(1, Math.max(0, normalized));
|
||||||
return Math.pow(normalized, exp);
|
return Math.pow(normalized, exp);
|
||||||
}
|
}
|
||||||
|
|
||||||
function mapCC(mapping, value) {
|
function mapCC(mapping, value) {
|
||||||
return Object.keys(value)
|
return Object.keys(value)
|
||||||
.filter((key) => !!mapping[getControlName(key)])
|
.filter((key) => !!mapping[getControlName(key)])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue