working
This commit is contained in:
parent
9b4574c7b0
commit
c2d4b529f6
1 changed files with 3 additions and 1 deletions
|
|
@ -17,7 +17,9 @@ import { loadBuffer } from './sampler.mjs';
|
|||
export const soundMap = map();
|
||||
|
||||
export function registerSound(key, onTrigger, data = {}) {
|
||||
soundMap.setKey(key.toLowerCase(), { onTrigger, data });
|
||||
key = key.toLowerCase().replace(/\s+/g, '_')
|
||||
console.info(key, data)
|
||||
soundMap.setKey(key, { onTrigger, data });
|
||||
}
|
||||
|
||||
function aliasBankMap(aliasMap) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue