mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-22 19:18:31 +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 const soundMap = map();
|
||||||
|
|
||||||
export function registerSound(key, onTrigger, data = {}) {
|
export function registerSound(key, onTrigger, data = {}) {
|
||||||
key = key.toLowerCase().replace(/\s+/g, '_')
|
key = key.toLowerCase().replace(/\s+/g, '_');
|
||||||
console.info(key, data)
|
|
||||||
soundMap.setKey(key, { onTrigger, data });
|
soundMap.setKey(key, { onTrigger, data });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user