From 4549e72813cd6f9237bc43f6878dc99e7628abe7 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Sun, 24 Jan 2016 20:47:25 -0800 Subject: [PATCH] minValue noise filtering now useless. --- metatron.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/metatron.js b/metatron.js index 4b1edf2..f0b2341 100644 --- a/metatron.js +++ b/metatron.js @@ -153,14 +153,10 @@ metatron.Listener.STATE_ = { metatron.Listener.prototype.currentValue_ = function() { this.analyser_.getByteFrequencyData(this.buffer_); var values = []; - var minValue = 255; - this.fftIndices_.forEach(function(index) { - minValue = Math.min(minValue, this.buffer_[index.index]); - }.bind(this)); this.fftIndices_.forEach(function(index) { values.push({ freq: index.freq, - value: this.buffer_[index.index] - minValue, + value: this.buffer_[index.index], }); }.bind(this)); values.sort(function(a, b) {