Perform A-weighting (and others) for a frequency. Useful for creating believable spectrum images and audio measurements.
var aWeight = ;var ft = ;//get a-weighted frequenciesvar frequencies =;
Note that weight function returns normalized
0..1 weight values, it does not do decibels calculation. If you need to convert weight to decibels, do
20 * Math.log(weight) / Math.log(10).
Thanks to all the specialists who researched and described these curves (years of work I guess) and wikipedia for detailed articles on this.