window functions added from dsp.js, better scales and ranges