remove midimap JSDoc

This commit is contained in:
nkymut 2025-02-09 12:19:30 +08:00
parent f802f18d68
commit b98ebc696d
2 changed files with 2 additions and 6 deletions

View File

@ -1622,12 +1622,7 @@ export const ar = register('ar', (t, pat) => {
*/
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');
/**

View File

@ -178,6 +178,7 @@ function normalize(value = 0, min = 0, max = 1, exp = 1) {
normalized = Math.min(1, Math.max(0, normalized));
return Math.pow(normalized, exp);
}
function mapCC(mapping, value) {
return Object.keys(value)
.filter((key) => !!mapping[getControlName(key)])