From dba8c6f91ddbad2331f40d3d352018a0d3e18562 Mon Sep 17 00:00:00 2001 From: Eric Rosenbaum Date: Fri, 23 Jun 2017 10:59:10 -0400 Subject: [PATCH] Adjust loudness smoothing --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 7b5f191..3cc959d 100644 --- a/src/index.js +++ b/src/index.js @@ -317,7 +317,7 @@ class AudioEngine { let rms = Math.sqrt(sum / this.micDataArray.length); // smooth the value, if it is descending if (this._lastValue) { - rms = Math.max(rms, this._lastValue * 0.5); + rms = Math.max(rms, this._lastValue * 0.6); } this._lastValue = rms;