{"_id":"@audio/weighting-d","_rev":"4-d97ac3b098d45d74e467d7bb5f51c450","name":"@audio/weighting-d","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"@audio/weighting-d","version":"1.0.0","keywords":["audio","dsp","weighting","d"],"author":{"name":"Dmitry Iv.","email":"dfcreative@gmail.com"},"license":"MIT","_id":"@audio/weighting-d@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":"8b3e25dd7a136d632bbedce6b95e818a01450015","tarball":"https://registry.npmjs.org/@audio/weighting-d/-/weighting-d-1.0.0.tgz","fileCount":2,"integrity":"sha512-tR3fFu+4JqKnFt9aZPrIKzb5ulyA3fy4R1YkL8GHNHYPgXoRn8V2K4Yrvr6c8NbPGuWDkCjLyPtHdg2r8ARjYw==","signatures":[{"sig":"MEUCIBuI4g+u3RjhNOHzEUMmjZXPdr/DTRikQJekCoE3GL8xAiEA25PxFSL703dnKy5O8+Ria9qfV7aZlXb5ZL0oHLfRrEI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2956},"main":"d-weighting.js","type":"module","engines":{"node":">=18"},"exports":{".":"./d-weighting.js","./package.json":"./package.json"},"gitHead":"d3648e39d9eb87cd057b27c4711f9850c20c109c","_npmUser":{"name":"dy","email":"df.creative@gmail.com"},"_npmVersion":"11.12.1","description":"IEC 537 D-weighting filter — aircraft-noise frequency response (resonant hump near 4 kHz)","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-d_1.0.0_1783598866119_0.18555538701059482","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@audio/weighting-d","version":"1.0.1","keywords":["audio","dsp","weighting","d"],"author":{"name":"Dmitry Iv.","email":"dfcreative@gmail.com"},"license":"MIT","_id":"@audio/weighting-d@1.0.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":"b8bb1626e37b1a7a704902620c8043169773f554","tarball":"https://registry.npmjs.org/@audio/weighting-d/-/weighting-d-1.0.1.tgz","fileCount":2,"integrity":"sha512-GUumBRRTdCK4kSe+xQ+yqFy6wr8UILOmWS8v8vslOUkrXlSoUfCkX0e9F+aXki30UH995uohfJwST7xsQqwGqg==","signatures":[{"sig":"MEYCIQDZ6LoENKcXJrL8FFpf5WSX9eJozVOksIQKESTZ3HQxhgIhAMaEBEtMVhO6nfWwAr4vzFshW7gWdW/p+JciWj50SXlM","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2620},"main":"d-weighting.js","type":"module","engines":{"node":">=18"},"exports":{".":"./d-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-d"},"_npmVersion":"11.12.1","description":"IEC 537 D-weighting filter — aircraft-noise frequency response (resonant hump near 4 kHz)","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-d_1.0.1_1783726380755_0.9892792458010313","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@audio/weighting-d","version":"1.0.2","keywords":["audio","dsp","weighting","d"],"author":{"name":"Dmitry Iv.","email":"dfcreative@gmail.com"},"license":"MIT","_id":"@audio/weighting-d@1.0.2","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":"95001aee08968f871b0ea8e791a56b23c3426969","tarball":"https://registry.npmjs.org/@audio/weighting-d/-/weighting-d-1.0.2.tgz","fileCount":6,"integrity":"sha512-3O3OBYh4oHyjqjL6GUSSe0gT30OJ6t8iBGh4Sb8R8kSUUrNH/DEPmZsJB4mHY2WDi6SwLE9Kjn7HT5GTs5zSEg==","signatures":[{"sig":"MEYCIQCX/WQrhQ4qqCC4X1hY+RId9jLyLV+W/QilLc+vHcDblwIhAPjNcSQtf3b5sHU4J+FYOrB1M/sdJf8ZcFVAhCfUcvvR","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8521},"main":"d-weighting.js","type":"module","audio":"./audio.js","types":"./d-weighting.d.ts","engines":{"node":">=18"},"exports":{".":"./d-weighting.js","./audio":{"types":"./audio.d.ts","default":"./audio.js"},"./package.json":"./package.json"},"funding":"https://github.com/sponsors/audiojs","gitHead":"688ffc6000d207b5e4d0babdc2239aa00bb44850","_npmUser":{"name":"dy","email":"df.creative@gmail.com"},"repository":{"url":"git+https://github.com/audiojs/weighting.git","type":"git","directory":"packages/weighting-d"},"_npmVersion":"11.12.1","description":"IEC 537 D-weighting filter — aircraft-noise frequency response (resonant hump near 4 kHz)","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-d_1.0.2_1783731996472_0.98352619904162","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"_id":"@audio/weighting-d@1.0.3","bugs":{"url":"https://github.com/audiojs/weighting/issues"},"dist":{"shasum":"9f3d1c38a3654c1a8a22f12071bdc950ae61a20c","tarball":"https://registry.npmjs.org/@audio/weighting-d/-/weighting-d-1.0.3.tgz","fileCount":6,"integrity":"sha512-es9ei3aUhQGqFxPp0Md/5PrxyVuVGi6XfteNXDARTJ1YfrvHEiYcnN6WEmZS+xChO3zpWnM470FAuAU9Y5Vc9w==","signatures":[{"sig":"MEUCIFRCCUWLbNpt02qyyUnAXEUX3IRleGp7Tb2iRXqKipkzAiEA7oawedxsXwtd5Q9JNGXdeH7YDu+3zIQA87AM10ruswY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCTn2AlX537NlfdvyNux9dwnMQ9xnHW46/SF+C30k8aAgIgUR9lZYDj/WZRnMIj9gFpjl9JhPReDMv/vhC2j0aBk8c="}],"unpackedSize":8680},"main":"d-weighting.js","name":"@audio/weighting-d","type":"module","audio":"./audio.js","types":"./d-weighting.d.ts","author":{"name":"Dmitry Iv.","email":"dfcreative@gmail.com"},"engines":{"node":">=18"},"exports":{".":"./d-weighting.js","./audio":{"types":"./audio.d.ts","default":"./audio.js"},"./package.json":"./package.json"},"funding":"https://github.com/sponsors/audiojs","gitHead":"3181c3133523da8a6fe57dcc5cccc15f3cf28b31","license":"MIT","version":"1.0.3","_npmUser":{"name":"dy","email":"df.creative@gmail.com"},"homepage":"https://github.com/audiojs/weighting#readme","keywords":["audio","dsp","weighting","d"],"repository":{"url":"git+https://github.com/audiojs/weighting.git","type":"git","directory":"packages/weighting-d"},"_npmVersion":"11.12.1","description":"IEC 537 D-weighting filter — aircraft-noise frequency response (resonant hump near 4 kHz)","directories":{},"maintainers":[{"name":"jamen","email":"jamenmarz@gmail.com"},{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"df.creative@gmail.com"}],"sideEffects":false,"_nodeVersion":"25.9.0","dependencies":{"@audio/biquad":"^1.1.0","digital-filter":"^2.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/weighting-d_1.0.3_1790490960535_0.2459098279725418"}}},"time":{"created":"2026-07-09T12:07:45.989Z","modified":"2026-09-27T06:36:00.782Z","1.0.0":"2026-07-09T12:07:46.262Z","1.0.1":"2026-07-10T23:33:00.884Z","1.0.2":"2026-07-11T01:06:36.640Z","1.0.3":"2026-09-27T06:36:00.613Z"},"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","d"],"repository":{"url":"git+https://github.com/audiojs/weighting.git","type":"git","directory":"packages/weighting-d"},"description":"IEC 537 D-weighting filter — aircraft-noise frequency response (resonant hump near 4 kHz)","maintainers":[{"name":"jamen","email":"jamenmarz@gmail.com"},{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"df.creative@gmail.com"}],"readme":"# @audio/weighting-d [![npm](https://img.shields.io/npm/v/@audio/weighting-d)](https://www.npmjs.com/package/@audio/weighting-d) [![MIT](https://img.shields.io/badge/MIT-%E0%A5%90-white)](https://github.com/krishnized/license)\n\nIEC 537 D-weighting filter — aircraft-noise curve with a resonant hump near 3.3 kHz\n\n```\nnpm install @audio/weighting-d\n```\n\n```js\nimport dWeighting from '@audio/weighting-d'\n```\n\nTime-domain D-weighting: matched-z discretization of the IEC 537 analog prototype\n`H(s) = s(s²+6532s+4.0975e7) / [(s+1776.3)(s+7288.5)(s²+21514s+3.8836e8)]` — one zero at\nDC plus a complex zero pair, two real poles plus a complex pole pair. The only weighting\ncurve with a resonant peak rather than a monotonic rolloff: ≈+11.6 dB near 3.3 kHz\n(+11.5 dB at the IEC 537 3.15 kHz third-octave reference point), matching the ear's\nsensitivity to aircraft flyover noise. Withdrawn from the modern standard. 2 second-order\nsections, normalized to exactly 0 dB at 1 kHz.\n\n```js\ndWeighting(data)                          // in place, fs=44100\ndWeighting(data, { fs: 48000 })\nlet sos = dWeighting.coefs(48000)         // 2 SOS sections — feed digital-filter's freqz\ndWeighting.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` | 2-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 of aircraft/jet-engine noise; the only weighting curve tuned for that resonant 3–4 kHz band rather than general SPL.\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"}