mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-11 05:38:34 +00:00
lint
This commit is contained in:
parent
c2d4b529f6
commit
6b8ee8ad11
@ -17,8 +17,7 @@ import { loadBuffer } from './sampler.mjs';
|
||||
export const soundMap = map();
|
||||
|
||||
export function registerSound(key, onTrigger, data = {}) {
|
||||
key = key.toLowerCase().replace(/\s+/g, '_')
|
||||
console.info(key, data)
|
||||
key = key.toLowerCase().replace(/\s+/g, '_');
|
||||
soundMap.setKey(key, { onTrigger, data });
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user