From eb704ec3396370513fcaebd8ac9f15faa7e46430 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 8 Oct 2018 01:31:59 +0200 Subject: sonifying these listsss --- client/lib/kalimba.js | 2 +- client/lib/util.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'client/lib') 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) -- cgit v1.2.3-70-g09d2