{"_id":"@audio/weighting-b","_rev":"4-11d01c9271fd8f1d1e43746ec0cb7612","name":"@audio/weighting-b","dist-tags":{"latest":"1.1.2"},"versions":{"1.0.0":{"name":"@audio/weighting-b","version":"1.0.0","keywords":["audio","dsp","weighting","b"],"author":{"name":"Dmitry Iv.","email":"dfcreative@gmail.com"},"license":"MIT","_id":"@audio/weighting-b@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":"11d258fa23dd912754fce3c22e7791a4d420e03a","tarball":"https://registry.npmjs.org/@audio/weighting-b/-/weighting-b-1.0.0.tgz","fileCount":2,"integrity":"sha512-giWAV9+1t1u0qupmN3ISNqgrQXj+IybLG2GiN2wbtIXGDUiI3VI81QZWfKcnP898bYHCOrirDuxBJ4VQPuBo0w==","signatures":[{"sig":"MEQCIBykj5zRMInR7oq7OpoJGN8PQ28Q7Jp35n/Efvn9KFDTAiB60MeOBIhLzDG+UMIfpLa5bfYuDxswOBoeQNDk9FLZaA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2369},"main":"b-weighting.js","type":"module","engines":{"node":">=18"},"exports":{".":"./b-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 / ANSI S1.42 B-weighting filter — moderate-loudness frequency response","directories":{},"sideEffects":false,"_nodeVersion":"25.9.0","dependencies":{"digital-filter":"^2.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/weighting-b_1.0.0_1783550846946_0.6088768821277168","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@audio/weighting-b","version":"1.1.0","keywords":["audio","dsp","weighting","b"],"author":{"name":"Dmitry Iv.","email":"dfcreative@gmail.com"},"license":"MIT","_id":"@audio/weighting-b@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":"4f34b974a0ac00e477767641ad08cc66c855da48","tarball":"https://registry.npmjs.org/@audio/weighting-b/-/weighting-b-1.1.0.tgz","fileCount":2,"integrity":"sha512-LQcMEKvy/yEbyOVF56hPZ6DNBe7PrTYVTV20zuNCZEF6yJeor0q0q6KdmjNMbxwdoGfJ0134YCkQfF9pYbRiJw==","signatures":[{"sig":"MEQCIHqSSguNnQ7gftrZgIjlU4EDAGgCLJ7sN3WQwr1zghF8AiAYZoW7aS6NRccb9mONpbjJcjggi1+J+S4IWnbD6ysCKg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2384},"main":"b-weighting.js","type":"module","engines":{"node":">=18"},"exports":{".":"./b-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 / ANSI S1.42 B-weighting filter — moderate-loudness frequency response","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-b_1.1.0_1783567872549_0.9449846522817185","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@audio/weighting-b","version":"1.1.1","keywords":["audio","dsp","weighting","b"],"author":{"name":"Dmitry Iv.","email":"dfcreative@gmail.com"},"license":"MIT","_id":"@audio/weighting-b@1.1.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":"64c566f56c3cb9c51d5d9bc29f66a4ed15bb4d5a","tarball":"https://registry.npmjs.org/@audio/weighting-b/-/weighting-b-1.1.1.tgz","fileCount":2,"integrity":"sha512-Svigsa0jtAh3C5qnJnlNNf/TaU69sMReOTgMOj9jmy9KwZlbaR+pmyvn7H1hIYEdL4Vb4FKlCKTwbzu699vk7Q==","signatures":[{"sig":"MEUCIDtdvhhE2OeFGqmGLcScD2QpW9Yd8RSImF1NiCjJK2XdAiEAv09unZRl7GwpOWMmtO9lSvT2dcECkWZgbh4pLjVIkFk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2048},"main":"b-weighting.js","type":"module","engines":{"node":">=18"},"exports":{".":"./b-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-b"},"_npmVersion":"11.12.1","description":"IEC 61672-1:2013 / ANSI S1.42 B-weighting filter — moderate-loudness frequency response","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-b_1.1.1_1783726377196_0.6092603134368733","host":"s3://npm-registry-packages-npm-production"}},"1.1.2":{"name":"@audio/weighting-b","version":"1.1.2","description":"IEC 61672-1:2013 / ANSI S1.42 B-weighting filter — moderate-loudness frequency response","type":"module","sideEffects":false,"main":"b-weighting.js","types":"./b-weighting.d.ts","exports":{".":"./b-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","b"],"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-b"},"funding":"https://github.com/sponsors/audiojs","audio":"./audio.js","gitHead":"688ffc6000d207b5e4d0babdc2239aa00bb44850","_id":"@audio/weighting-b@1.1.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-vkBYs11aY3cuK3JWfFXsPb7a2FgKJzrP29X6fOu0i77oBebprk+mMDM+aPVs6RK3nsOwQSQWh5zaop8sZBFRMg==","shasum":"263a290650a22812f51394573b4cfbaabc4e9936","tarball":"https://registry.npmjs.org/@audio/weighting-b/-/weighting-b-1.1.2.tgz","fileCount":6,"unpackedSize":7798,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCRnPWXdBAe3dqLDfHk+NRuzhxvwUH5jjldrbWXDXMk+QIhANaDsHNEAFV+gypQiosl0dUvOoVk9DtLW/fwMnnIjtLh"}]},"_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-b_1.1.2_1783731991795_0.37868357694967725"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-08T22:47:26.809Z","modified":"2026-07-11T01:06:32.161Z","1.0.0":"2026-07-08T22:47:27.086Z","1.1.0":"2026-07-09T03:31:12.712Z","1.1.1":"2026-07-10T23:32:57.332Z","1.1.2":"2026-07-11T01:06:32.014Z"},"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","b"],"repository":{"type":"git","url":"git+https://github.com/audiojs/weighting.git","directory":"packages/weighting-b"},"description":"IEC 61672-1:2013 / ANSI S1.42 B-weighting filter — moderate-loudness frequency response","maintainers":[{"name":"jamen","email":"jamenmarz@gmail.com"},{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"df.creative@gmail.com"}],"readme":"# @audio/weighting-b [![npm](https://img.shields.io/npm/v/@audio/weighting-b)](https://www.npmjs.com/package/@audio/weighting-b) [![MIT](https://img.shields.io/badge/MIT-%E0%A5%90-white)](https://github.com/krishnized/license)\n\nIEC 61672-1:2013 / ANSI S1.42 B-weighting filter — moderate-loudness curve\n\n```\nnpm install @audio/weighting-b\n```\n\n```js\nimport bWeighting from '@audio/weighting-b'\n```\n\nTime-domain B-weighting: matched-z discretization of the historical ANSI B-curve analog\nprototype, sharing A/C-weighting's f1=20.598997 Hz (double pole) and f4=12194.217 Hz\n(double pole) but with its own single mid pole at f2=158.5 Hz — the original ANSI B\ncorner, distinct from A's f2/f3. Withdrawn from the modern IEC 61672 standard (superseded\nby A/C), retained here for compatibility with legacy ANSI S1.4 meters. 3 second-order\nsections, normalized to exactly 0 dB at 1 kHz.\n\n```js\nbWeighting(data)                          // in place, fs=44100\nbWeighting(data, { fs: 48000 })\nlet sos = bWeighting.coefs(48000)         // 3 SOS sections — feed digital-filter's freqz\nbWeighting.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` (double pole f1 + single pole f2 + double pole f4), 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:** reproducing or matching legacy ANSI S1.4 moderate-loudness meter readings; A or C-weighting for anything current.\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"}