diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-10-08 01:31:59 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-10-08 01:31:59 +0200 |
| commit | eb704ec3396370513fcaebd8ac9f15faa7e46430 (patch) | |
| tree | fe028a892ee6e871e443bcc5560ff2a75e4c9699 /client/lib | |
| parent | 9e824cc6d358fc902b27e00e5a1e8f88e3610823 (diff) | |
sonifying these listsss
Diffstat (limited to 'client/lib')
| -rw-r--r-- | client/lib/kalimba.js | 2 | ||||
| -rw-r--r-- | client/lib/util.js | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/client/lib/kalimba.js b/client/lib/kalimba.js index 60a50a9..0354f69 100644 --- a/client/lib/kalimba.js +++ b/client/lib/kalimba.js @@ -39,7 +39,7 @@ function play (freq) { const player = best.sample.players[ best.sample.index ] player.playbackRate = freq / best.sample.root - console.log(player) + // console.log(player) player.start() } diff --git a/client/lib/util.js b/client/lib/util.js index f33146f..5a1deb7 100644 --- a/client/lib/util.js +++ b/client/lib/util.js @@ -128,7 +128,8 @@ export function get_bounds(dataset){ /* transpose a 2D array */ export function transpose(a) { - let i_len = a.length, j_len = a[0].length + let i_len = a[0].length + let j_len = a.length let T = new Array(i_len) for (let i = 0; i < i_len; i++) { T[i] = new Array(j_len) |
