Comparing version 2.0.0 to 2.0.1
@@ -47,7 +47,4 @@ var inherits = require('util').inherits | ||
var sum = 0 | ||
var total = 0 | ||
for (var i = 0; i < input.length; i++) { | ||
var x = input[i] | ||
total += x | ||
sum += x * x | ||
sum += input[i] * input[i] | ||
} | ||
@@ -54,0 +51,0 @@ return Math.sqrt(sum / input.length) |
{ | ||
"name": "audio-rms", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Connect a Web Audio API AudioNode and stream out the realtime RMS audio level.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
4380
72