From 52d1d2af93abe49a439992aa7839b5d0a02fab68 Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Sat, 7 Jul 2018 12:47:41 -0700 Subject: [PATCH] Tune EQ analyser node. Fixes #613 --- js/media/index.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/js/media/index.js b/js/media/index.js index 3342b214..22e62866 100644 --- a/js/media/index.js +++ b/js/media/index.js @@ -55,10 +55,11 @@ export default class Media { // Create the analyser node for the visualizer this._analyser = this._context.createAnalyser(); this._analyser.fftSize = 2048; - // TODO: Tune these to something that looks like Winamp - this._analyser.minDecibels = -90; - this._analyser.maxDecibels = -10; - this._analyser.smoothingTimeConstant = 0.8; + // Tuned by @The1Freeman to resemble Winamp 2.9x. + // https://github.com/captbaritone/webamp/pull/613 + this._analyser.minDecibels = -64; + this._analyser.maxDecibels = 0; + this._analyser.smoothingTimeConstant = 0.25; // Create the gain node for the volume control this._gainNode = this._context.createGain();