From f30115f4113bcd15a1833dfc88d424ddd5772ce2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20B=C3=A4dorf?= Date: Fri, 7 Jun 2019 17:51:11 +0200 Subject: [PATCH] Changed threshold --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 3544e8a..37bf08e 100644 --- a/src/index.js +++ b/src/index.js @@ -3,7 +3,7 @@ import 'p5/lib/addons/p5.sound'; import './index.scss'; const VOLUME_NORMALIZATION = 1000; -const THRESHOLD = 10 / VOLUME_NORMALIZATION; +const THRESHOLD = 5 / VOLUME_NORMALIZATION; function getColorValue(volume) { return Math.floor(volume * VOLUME_NORMALIZATION * 256);