diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-03-12 02:55:52 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-03-12 02:55:52 +0100 |
| commit | 5e1f469a09192b87eaecb34505b87a14b5568b79 (patch) | |
| tree | 7fa29814ab8c6dee4ec7ac50c218008a93333232 /client | |
| parent | 539268e25a0a7a2f7ac37c6198314cc264f943a1 (diff) | |
le preset
Diffstat (limited to 'client')
| -rw-r--r-- | client/index.js | 6 | ||||
| -rw-r--r-- | client/lib/spectrum.js | 4 |
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] |
