Changed threshold
This commit is contained in:
parent
24afe2c3ce
commit
f30115f411
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue