{"_id":"@audio/weighting-a","_rev":"5-4c98b5ff3f7d489b8b707b5065bfb5d7","name":"@audio/weighting-a","dist-tags":{"latest":"1.2.2"},"versions":{"1.0.0":{"name":"@audio/weighting-a","version":"1.0.0","keywords":["audio","dsp","weighting","a"],"author":{"name":"Dmitry Iv.","email":"dfcreative@gmail.com"},"license":"MIT","_id":"@audio/weighting-a@1.0.0","maintainers":[{"name":"jamen","email":"jamenmarz@gmail.com"},{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"df.creative@gmail.com"}],"dist":{"shasum":"ca9c51d5870038100cbefd76ab811b6694f55f78","tarball":"https://registry.npmjs.org/@audio/weighting-a/-/weighting-a-1.0.0.tgz","fileCount":2,"integrity":"sha512-kGnBYsjI3y9LdfQW07DquAUvglAjCZcytZlIL2RHbhULSoJiGpuL1vdR9r5t7ZfFJ15kNL9qfODOoTlw5jrW/g==","signatures":[{"sig":"MEUCIQDmoXgNUt3y36+1wpFN/b1vEbAbzP5sSQXMF/lRyBLGXAIgJoNlg3uaU6b3wCkt4JfPj1mLMq4nTvySRan3sqTnoiE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1329},"main":"a-weighting.js","type":"module","engines":{"node":">=18"},"exports":{".":"./a-weighting.js","./package.json":"./package.json"},"gitHead":"7497a13df657af3880ce03550aa70afe35d5a511","_npmUser":{"name":"dy","email":"df.creative@gmail.com"},"_npmVersion":"11.12.1","description":"IEC 61672-1:2013 analog prototype frequencies","directories":{},"sideEffects":false,"_nodeVersion":"25.9.0","dependencies":{"digital-filter":"^2.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/weighting-a_1.0.0_1783539784925_0.06723310561536966","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@audio/weighting-a","version":"1.1.0","keywords":["audio","dsp","weighting","a"],"author":{"name":"Dmitry Iv.","email":"dfcreative@gmail.com"},"license":"MIT","_id":"@audio/weighting-a@1.1.0","maintainers":[{"name":"jamen","email":"jamenmarz@gmail.com"},{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"df.creative@gmail.com"}],"dist":{"shasum":"f78a7e467bb0499788c8011f97cac81094260757","tarball":"https://registry.npmjs.org/@audio/weighting-a/-/weighting-a-1.1.0.tgz","fileCount":2,"integrity":"sha512-w/VvdzM5QWimxSCLcCulk6FT2rQSD1C1LuLhGYRV8NOvtP6ahBxxg0Wzsc/vgW002aZqDfTcRZPQePeHs6b64g==","signatures":[{"sig":"MEYCIQCplNqthEoksh8ycZYKPt4B3D6NZPghnrNY0LX9726SMAIhAI8C1h+IbhPtFitrgXYpEHmYpKVDaEntZfdiDacEp59s","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2032},"main":"a-weighting.js","type":"module","engines":{"node":">=18"},"exports":{".":"./a-weighting.js","./package.json":"./package.json"},"gitHead":"794c5ca00e4227a6a51d872506685ed144087692","_npmUser":{"name":"dy","email":"df.creative@gmail.com"},"_npmVersion":"11.12.1","description":"IEC 61672-1:2013 analog prototype frequencies","directories":{},"sideEffects":false,"_nodeVersion":"25.9.0","dependencies":{"digital-filter":"^2.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/weighting-a_1.1.0_1783550845081_0.4835633328057076","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@audio/weighting-a","version":"1.2.0","keywords":["audio","dsp","weighting","a"],"author":{"name":"Dmitry Iv.","email":"dfcreative@gmail.com"},"license":"MIT","_id":"@audio/weighting-a@1.2.0","maintainers":[{"name":"jamen","email":"jamenmarz@gmail.com"},{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"df.creative@gmail.com"}],"dist":{"shasum":"f0cc0df45a2b073c9008fb3078405c7e1583658d","tarball":"https://registry.npmjs.org/@audio/weighting-a/-/weighting-a-1.2.0.tgz","fileCount":2,"integrity":"sha512-6l9PmqAbzrVFdWsU45jXkL5ilAe4zq9jPVvkQOgdABs1ZuEbpNSgbjpMokDcxy0R1+JxWQTTGMgo8OkNyfFLfQ==","signatures":[{"sig":"MEYCIQD2zyS4by6GtjC9SE5l/atMlt4Wn2LcfW8Pl/TJR785JgIhAKb5RsCMJ9elbtUYIqHPr1QFSH7fSGU7IpfzC32uzm6h","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2047},"main":"a-weighting.js","type":"module","engines":{"node":">=18"},"exports":{".":"./a-weighting.js","./package.json":"./package.json"},"gitHead":"9708e291edb4702f69eba69fa7189143c5f4d124","_npmUser":{"name":"dy","email":"df.creative@gmail.com"},"_npmVersion":"11.12.1","description":"IEC 61672-1:2013 analog prototype frequencies","directories":{},"sideEffects":false,"_nodeVersion":"25.9.0","dependencies":{"@audio/biquad":"^1.1.0","digital-filter":"^2.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/weighting-a_1.2.0_1783567871081_0.26345313704281104","host":"s3://npm-registry-packages-npm-production"}},"1.2.1":{"name":"@audio/weighting-a","version":"1.2.1","keywords":["audio","dsp","weighting","a"],"author":{"name":"Dmitry Iv.","email":"dfcreative@gmail.com"},"license":"MIT","_id":"@audio/weighting-a@1.2.1","maintainers":[{"name":"jamen","email":"jamenmarz@gmail.com"},{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"df.creative@gmail.com"}],"homepage":"https://github.com/audiojs/weighting#readme","bugs":{"url":"https://github.com/audiojs/weighting/issues"},"dist":{"shasum":"077b0cc5b13a59fcff30729d2d0c2a668f399b56","tarball":"https://registry.npmjs.org/@audio/weighting-a/-/weighting-a-1.2.1.tgz","fileCount":2,"integrity":"sha512-C+0oE9tVkIP/K5mkMDYiVNoj8m/wp/FeQGVqlG10LHd3sG8f42ZuED3M1Zmi5FhKMRozkE7AMdvPEOr6sPhTnQ==","signatures":[{"sig":"MEQCIHzs2Hs7/4PfQALiACp9TbD15t15MeNUFU0cVngqgE8uAiA43wfyQx0uNWaP6DBdH5WotZn+gz8AWQcR+EtGG2sdDQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1711},"main":"a-weighting.js","type":"module","engines":{"node":">=18"},"exports":{".":"./a-weighting.js","./package.json":"./package.json"},"gitHead":"f2ec2225ba71999750e75242536f1e203c912ba0","_npmUser":{"name":"dy","email":"df.creative@gmail.com"},"repository":{"url":"git+https://github.com/audiojs/weighting.git","type":"git","directory":"packages/weighting-a"},"_npmVersion":"11.12.1","description":"IEC 61672-1:2013 analog prototype frequencies","directories":{},"sideEffects":false,"_nodeVersion":"25.9.0","dependencies":{"@audio/biquad":"^1.1.0","digital-filter":"^2.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/weighting-a_1.2.1_1783726375283_0.020286081049065707","host":"s3://npm-registry-packages-npm-production"}},"1.2.2":{"name":"@audio/weighting-a","version":"1.2.2","description":"IEC 61672-1:2013 analog prototype frequencies","type":"module","sideEffects":false,"main":"a-weighting.js","types":"./a-weighting.d.ts","exports":{".":"./a-weighting.js","./package.json":"./package.json","./audio":{"types":"./audio.d.ts","default":"./audio.js"}},"dependencies":{"digital-filter":"^2.0.0","@audio/biquad":"^1.1.0"},"keywords":["audio","dsp","weighting","a"],"license":"MIT","author":{"name":"Dmitry Iv.","email":"dfcreative@gmail.com"},"engines":{"node":">=18"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/audiojs/weighting.git","directory":"packages/weighting-a"},"funding":"https://github.com/sponsors/audiojs","audio":"./audio.js","gitHead":"688ffc6000d207b5e4d0babdc2239aa00bb44850","_id":"@audio/weighting-a@1.2.2","bugs":{"url":"https://github.com/audiojs/weighting/issues"},"homepage":"https://github.com/audiojs/weighting#readme","_nodeVersion":"25.9.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-Xee9lL2rdGEs2EIjWHHlFEfSaNVAi28Xj2QTJ2rt1EWvfWb1pIqn018c9s5UH+YAvt+AkFdonB7qCWvD+c526w==","shasum":"9676d41a65f50ac47ad7ec1a5b12bae3c55622dd","tarball":"https://registry.npmjs.org/@audio/weighting-a/-/weighting-a-1.2.2.tgz","fileCount":6,"unpackedSize":7016,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCfaE7gq75f5Mv39uUS6qjA5BdeY1glMggzE2vSYTuZ5QIgT1ASXu8NiYHbNnzFnsfwbAFJrVGG9oHOqLR3dEAu2r4="}]},"_npmUser":{"name":"dy","email":"df.creative@gmail.com"},"directories":{},"maintainers":[{"name":"jamen","email":"jamenmarz@gmail.com"},{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"df.creative@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/weighting-a_1.2.2_1783731989700_0.19233365990209905"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-08T19:43:04.809Z","modified":"2026-07-11T01:06:30.013Z","1.0.0":"2026-07-08T19:43:05.060Z","1.1.0":"2026-07-08T22:47:25.275Z","1.2.0":"2026-07-09T03:31:11.193Z","1.2.1":"2026-07-10T23:32:55.414Z","1.2.2":"2026-07-11T01:06:29.859Z"},"bugs":{"url":"https://github.com/audiojs/weighting/issues"},"author":{"name":"Dmitry Iv.","email":"dfcreative@gmail.com"},"license":"MIT","homepage":"https://github.com/audiojs/weighting#readme","keywords":["audio","dsp","weighting","a"],"repository":{"type":"git","url":"git+https://github.com/audiojs/weighting.git","directory":"packages/weighting-a"},"description":"IEC 61672-1:2013 analog prototype frequencies","maintainers":[{"name":"jamen","email":"jamenmarz@gmail.com"},{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"df.creative@gmail.com"}],"readme":"# @audio/weighting-a [![npm](https://img.shields.io/npm/v/@audio/weighting-a)](https://www.npmjs.com/package/@audio/weighting-a) [![MIT](https://img.shields.io/badge/MIT-%E0%A5%90-white)](https://github.com/krishnized/license)\n\nIEC 61672-1:2013 A-weighting filter — the standard SPL-meter curve\n\n```\nnpm install @audio/weighting-a\n```\n\n```js\nimport aWeighting from '@audio/weighting-a'\n```\n\nTime-domain A-weighting: matched-z discretization of the IEC 61672-1:2013 analog prototype\n`H(s) = K·s⁴ / ((s+w1)²(s+w2)(s+w3)(s+w4)²)` with poles at f1=20.598997 Hz (double),\nf2=107.65265 Hz, f3=737.86223 Hz, f4=12194.217 Hz (double) — 3 second-order sections,\nnormalized to exactly 0 dB at 1 kHz.\n\n```js\naWeighting(data)                          // in place, fs=44100\naWeighting(data, { fs: 48000 })\nlet sos = aWeighting.coefs(48000)         // 3 SOS sections — feed digital-filter's freqz\naWeighting.response(1000, 48000)          // |H(1000)| — 1.0 (0dB normalization)\n```\n\n| Param | Default | |\n|---|---|---|\n| `fs` | `44100` | sample rate — SOS recomputed when it changes mid-stream |\n\n| Static | Returns | |\n|---|---|---|\n| `.coefs(fs)` | `SOS` | 3-section cascade at rate `fs`, for analysis/plotting |\n| `.response(f, fs)` | `number` | `\\|H(f)\\|` — exact magnitude of this atom's own `.coefs(fs)` cascade, not an independent approximation |\n\n**Use when:** measuring or matching perceived loudness at low-to-moderate SPL — the standard curve for consumer/broadcast loudness meters and most \"dBA\" specs.\n\n---\n\nPart of [@audio/weighting](https://github.com/audiojs/weighting) — the weighting family umbrella.\n\nMIT © [audiojs](https://github.com/audiojs)\n","readmeFilename":"README.md"}