summaryrefslogtreecommitdiff
path: root/client/index.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-03-12 02:55:52 +0100
committerJules Laplace <julescarbon@gmail.com>2018-03-12 02:55:52 +0100
commit5e1f469a09192b87eaecb34505b87a14b5568b79 (patch)
tree7fa29814ab8c6dee4ec7ac50c218008a93333232 /client/index.js
parent539268e25a0a7a2f7ac37c6198314cc264f943a1 (diff)
le preset
Diffstat (limited to 'client/index.js')
-rw-r--r--client/index.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/index.js b/client/index.js
index 5ad002e..809220d 100644
--- a/client/index.js
+++ b/client/index.js
@@ -27,8 +27,8 @@ let samplers = {}
let sampler
requestAudioContext( () => {
- sampler = samplers.smash = new Sampler('samples/smash/g{}.mp3', 12)
- // sampler = samplers.earth = new Sampler('samples/earth/earth{}.mp3', 20)
+ // sampler = samplers.smash = new Sampler('samples/smash/g{}.mp3', 12)
+ sampler = samplers.earth = new Sampler('samples/earth/earth{}.mp3', 20)
// sampler = samplers.glass = new Sampler('samples/glass/0{}Particle.mp3', 20)
// sampler = samplers.bong = new Sampler('samples/bong/bong{}.mp3', 10)
// sampler = samplers.kalimba = new Sampler('samples/kalimba/380731__cabled-mess__sansula-08-c-raw.wav', 10)
@@ -53,7 +53,7 @@ function redraw(){
draw.clear()
}
-// let last_lin_bins, last_sam
+let last_lin_bins, last_sam
let timeout
function manipulate(x, y, pcm, spec){
if (timeout) return null