summaryrefslogtreecommitdiff
path: root/client/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/index.js')
-rw-r--r--client/index.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/client/index.js b/client/index.js
index ca6b3d9..f2f72c0 100644
--- a/client/index.js
+++ b/client/index.js
@@ -22,11 +22,10 @@ const ws = w/s, hs = h/s
let samplers = {}
requestAudioContext( () => {
+ samplers['smash'] = new Sampler('samples/smash/g{}.mp3', 12)
+ // samplers['glass'] = new Sampler('samples/glass/0{}Particle.mp3', 90)
})
-samplers['smash'] = new Sampler('samples/smash/g{}.mp3', 12)
-// samplers['glass'] = new Sampler('samples/glass/0{}Particle.mp3', 90)
-
let last_index = 0
keys.listen(index => {
index = Math.abs(index+10)