First pass

This commit is contained in:
Aria 2025-10-09 18:28:59 -05:00
parent cbcb25b063
commit a3b803c3f3
7 changed files with 271 additions and 98 deletions

View file

@ -105,3 +105,8 @@ export function getCommonSampleInfo(hapValue, bank) {
const label = `${s}:${index}`;
return { transpose, url, index, midi, label };
}
/** Selects entries from `source` and renames them via `map` */
export const pickAndRename = (source, map) => {
return Object.fromEntries(Object.entries(map).map(([newKey, oldKey]) => [newKey, source[oldKey]]));
};