Changed threshold

This commit is contained in:
Benjamin Bädorf 2019-06-07 17:51:11 +02:00
parent 24afe2c3ce
commit f30115f411

View file

@ -3,7 +3,7 @@ import 'p5/lib/addons/p5.sound';
import './index.scss'; import './index.scss';
const VOLUME_NORMALIZATION = 1000; const VOLUME_NORMALIZATION = 1000;
const THRESHOLD = 10 / VOLUME_NORMALIZATION; const THRESHOLD = 5 / VOLUME_NORMALIZATION;
function getColorValue(volume) { function getColorValue(volume) {
return Math.floor(volume * VOLUME_NORMALIZATION * 256); return Math.floor(volume * VOLUME_NORMALIZATION * 256);