a-weighting [](https://github.com/audiojs/a-weighting/actions/workflows/test.yml)

April 6, 2026 · View on GitHub

Standard frequency weighting curves (IEC 61672, ITU-R 468) for approximating equal-loudness contours of human ear.

A-weighting

Usage

import { a } from 'a-weighting'

// apply a-weighting to frequency spectrum
let weighted = frequencies.map((magnitude, i, data) => {
  let frequency = 22050 * i / data.length
  return a(frequency) * magnitude
})

Returns normalized 0..1 weight values, not decibels. To convert: 20 * Math.log10(weight).

Weights

ExportStandardDescription
aA-weightingGeneral noise measurement
bB-weightingModerate loudness
cC-weightingHigh loudness
dD-weightingAircraft noise
mITU-R 468Telecommunications
zZ-weightingFlat (unity gain)

See also

MIT ·