summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/index.js6
-rw-r--r--client/lib/spectrum.js4
2 files changed, 5 insertions, 5 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
diff --git a/client/lib/spectrum.js b/client/lib/spectrum.js
index 1dd9619..584d8b5 100644
--- a/client/lib/spectrum.js
+++ b/client/lib/spectrum.js
@@ -215,8 +215,8 @@ function reorderBins(spec, order){
col = data[i]
new_col = new_data[i] = data[i].concat()
col[0] = 0
- // col[2] = 0
- // col[4] = 0
+ col[2] = 0
+ col[4] = 0
for (j = 0; j < fft_size/2; j++) {
new_col[j*2] = col[order[j]*2]
new_col[j*2+1] = col[order[j]*2+1]