Increase curve to decrease the data values generated to 4, rather than 5.
Smooth out animation.

Sync animation duration to update frequency of spectrum analysis. Also use requestAnimationFrame.