captbaritone/winamp2-js — pull request #104 by PAEz (2014-12-08 08:04:11+00:00)
Title: Fix bars

Increasing the fft size makes a big difference.
Each element in the buffer represents a frequency range and its amplitude.
By increasing the fft size you increase the distance in frequency between each bar (as were only painting 19 out of woteva) and makes the visual jump around alot more as each frequency isnt so close to each other theres more variance.

Im sooooo tempted to knock off the higher range frequencies as their hardly ever drawn.
Try it....
Change this line....
var pos=this.bufferLength/(barCount-1);
...too....
var pos=(this.bufferLength-250)/(barCount-1); // this one with an fft.size of 2048 (buffer 1024) seems to look good on a bunch of stuff I tried with most half amp and one full amp.
Your going to be missing the higher frequencies but who really cares. Were just giving them something pretty to look at, not trying to do any scientific analysis. ;)

Then try playing with the...
minDecibels
maxDecibels
smoothingTimeConstant
Ive set them to something that jumps around alot coz I like it like that, but the first bar is up to high alot of the time...still, its something to look at ;)
Just play with them till you get something YOU like :P