First pass
This commit is contained in:
parent
cbcb25b063
commit
a3b803c3f3
7 changed files with 271 additions and 98 deletions
|
|
@ -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]]));
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue