{"_id":"@audio/weighting-c","_rev":"6-0b894c39d0381a36fd40124cb82e8b5a","name":"@audio/weighting-c","dist-tags":{"latest":"1.2.3"},"versions":{"1.0.0":{"name":"@audio/weighting-c","version":"1.0.0","keywords":["audio","dsp","weighting","c"],"author":{"name":"Dmitry Iv.","email":"dfcreative@gmail.com"},"license":"MIT","_id":"@audio/weighting-c@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":"c1508bcb187b361e426e32e988796a52d7e69453","tarball":"https://registry.npmjs.org/@audio/weighting-c/-/weighting-c-1.0.0.tgz","fileCount":2,"integrity":"sha512-20ELPdpo8MCN5dWYzy4AS0qrnC0IJ+aoYDdpyrzXmH32VE2oOGGy51G17FrorXZwu6cXmaQ48YGfzHEjLkVx7A==","signatures":[{"sig":"MEUCIQD4ZoPrKXPp/LKtFKfHv1o8VAm8pZuNjYvsIrvML3m/fgIgRzeJIx/HaNuluWIlfrgBifh1znR7xlVQmVxhrwgUKNg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1261},"main":"c-weighting.js","type":"module","engines":{"node":">=18"},"exports":{".":"./c-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 C-weighting: H(s) = K·s² / ((s+w1)²(s+w4)²)","directories":{},"sideEffects":false,"_nodeVersion":"25.9.0","dependencies":{"digital-filter":"^2.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/weighting-c_1.0.0_1783539786945_0.8631209655711245","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@audio/weighting-c","version":"1.1.0","keywords":["audio","dsp","weighting","c"],"author":{"name":"Dmitry Iv.","email":"dfcreative@gmail.com"},"license":"MIT","_id":"@audio/weighting-c@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":"3496093a01a06ceb2e6655036ce3930f2d25b92e","tarball":"https://registry.npmjs.org/@audio/weighting-c/-/weighting-c-1.1.0.tgz","fileCount":2,"integrity":"sha512-XekyGE46NUteLKcD/rKPSny9EbLA19P1vZCaVRKLLt7DMY4hymjGc+Ouqj8Zbix/7zmamZgzjnUdq5FjJCrx6w==","signatures":[{"sig":"MEYCIQCNKhAMHzxQjoYm4E7sS7yh5SkaHKJ75PEMje1bmQd5ywIhANixAqFyj2yiXiShLGxgDH+oXN8X2Zz985n59KDYgF9/","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1964},"main":"c-weighting.js","type":"module","engines":{"node":">=18"},"exports":{".":"./c-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 C-weighting: H(s) = K·s² / ((s+w1)²(s+w4)²)","directories":{},"sideEffects":false,"_nodeVersion":"25.9.0","dependencies":{"digital-filter":"^2.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/weighting-c_1.1.0_1783550848815_0.2276225492002686","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@audio/weighting-c","version":"1.2.0","keywords":["audio","dsp","weighting","c"],"author":{"name":"Dmitry Iv.","email":"dfcreative@gmail.com"},"license":"MIT","_id":"@audio/weighting-c@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":"e79c993607b7673847a0200d1d5d59216bf9c183","tarball":"https://registry.npmjs.org/@audio/weighting-c/-/weighting-c-1.2.0.tgz","fileCount":2,"integrity":"sha512-F1PmUkoorDZQyt5UH5TvrSy3/s3PrNUad32pF/7Ta8riJibxOGBYqt0kHAaentxs7KI2WAsjrgmH77/3GJxiHw==","signatures":[{"sig":"MEQCIGZf1AqXmK/ImE2MmIxhXcCyrKqbF+GZyWpHwaxWGPt7AiAK8SN349aJgqe0MCxsqjsY2driGXiuG47eRdZUOD+VvQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1979},"main":"c-weighting.js","type":"module","engines":{"node":">=18"},"exports":{".":"./c-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 C-weighting: H(s) = K·s² / ((s+w1)²(s+w4)²)","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-c_1.2.0_1783567874216_0.374814014013912","host":"s3://npm-registry-packages-npm-production"}},"1.2.1":{"name":"@audio/weighting-c","version":"1.2.1","keywords":["audio","dsp","weighting","c"],"author":{"name":"Dmitry Iv.","email":"dfcreative@gmail.com"},"license":"MIT","_id":"@audio/weighting-c@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":"95a17406373fc389a24a5d12fe373eea4f420d2a","tarball":"https://registry.npmjs.org/@audio/weighting-c/-/weighting-c-1.2.1.tgz","fileCount":2,"integrity":"sha512-wPHDKrnzXhmscy1acj3IXyIu6lJrzQW2O26/MklPjEC3NBuQQanjE1NYRJsIDnPjJD36n1NIxk8rxX+bSHX3DA==","signatures":[{"sig":"MEYCIQCjABZ0lJTsnqGa6ayyXzBB64GcpOi1SCEQYljpnvLumwIhAMsd+f3eXpVkK22h95HOwlgVXygZ0IOvrohc4jqFw6q0","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1643},"main":"c-weighting.js","type":"module","engines":{"node":">=18"},"exports":{".":"./c-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-c"},"_npmVersion":"11.12.1","description":"IEC 61672-1:2013 C-weighting: H(s) = K·s² / ((s+w1)²(s+w4)²)","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-c_1.2.1_1783726379026_0.4343411829307591","host":"s3://npm-registry-packages-npm-production"}},"1.2.2":{"name":"@audio/weighting-c","version":"1.2.2","keywords":["audio","dsp","weighting","c"],"author":{"name":"Dmitry Iv.","email":"dfcreative@gmail.com"},"license":"MIT","_id":"@audio/weighting-c@1.2.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":"ac549a26cb6832b959ffbbaaa29352b48c5546ba","tarball":"https://registry.npmjs.org/@audio/weighting-c/-/weighting-c-1.2.2.tgz","fileCount":6,"integrity":"sha512-DSt3MQXnkRPN5F0UtMZ2MpVuY1SiAJ0pCii3AlyZbF/VpmcfaMj+5w9/J6CypZy2ci3CdJzZGWM0uK0ADNr2Dg==","signatures":[{"sig":"MEYCIQDMHHa4Zr2uVvfKY9cWxWbRDdbee78uSGzc2/4sE3E20QIhAJMVwAlXsGwYNGwj5u9CZVk1fc4Js5ZptqLtshRcchGT","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7032},"main":"c-weighting.js","type":"module","audio":"./audio.js","types":"./c-weighting.d.ts","engines":{"node":">=18"},"exports":{".":"./c-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-c"},"_npmVersion":"11.12.1","description":"IEC 61672-1:2013 C-weighting: H(s) = K·s² / ((s+w1)²(s+w4)²)","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-c_1.2.2_1783731994255_0.14173572420516223","host":"s3://npm-registry-packages-npm-production"}},"1.2.3":{"_id":"@audio/weighting-c@1.2.3","bugs":{"url":"https://github.com/audiojs/weighting/issues"},"dist":{"shasum":"a36f36cbedf9eb193cf66ea7ef9fdbf255a33377","tarball":"https://registry.npmjs.org/@audio/weighting-c/-/weighting-c-1.2.3.tgz","fileCount":6,"integrity":"sha512-wQ4iILFpy3zxoK0rB3YvClVX3J3oARHintnzPCeq8JbbEqVy0+4Da3p9eGu+yprkMIJdXkbk8zqPbGZXbHZ3OA==","signatures":[{"sig":"MEUCIG5JDB2j4+mBvspaeiaVJdKq073iv4SAnkEq6LMvKKa6AiEAkAHEgZJCggo40qEfd7GOpsfUln34UsBEG3YdkbUQMP8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAob8bCrfwGnFtHZS616cXjPQORF+3CgO4nQeZ1CYkigAiEAqpe3tJC6GigY0uim38RNDLju3tNZElFr4sc9MG2a54I="}],"unpackedSize":7191},"main":"c-weighting.js","name":"@audio/weighting-c","type":"module","audio":"./audio.js","types":"./c-weighting.d.ts","author":{"name":"Dmitry Iv.","email":"dfcreative@gmail.com"},"engines":{"node":">=18"},"exports":{".":"./c-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.2.3","_npmUser":{"name":"dy","email":"df.creative@gmail.com"},"homepage":"https://github.com/audiojs/weighting#readme","keywords":["audio","dsp","weighting","c"],"repository":{"url":"git+https://github.com/audiojs/weighting.git","type":"git","directory":"packages/weighting-c"},"_npmVersion":"11.12.1","description":"IEC 61672-1:2013 C-weighting: H(s) = K·s² / ((s+w1)²(s+w4)²)","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-c_1.2.3_1790490956801_0.8167177258831129"}}},"time":{"created":"2026-07-08T19:43:06.793Z","modified":"2026-09-27T06:35:57.033Z","1.0.0":"2026-07-08T19:43:07.069Z","1.1.0":"2026-07-08T22:47:28.951Z","1.2.0":"2026-07-09T03:31:14.353Z","1.2.1":"2026-07-10T23:32:59.178Z","1.2.2":"2026-07-11T01:06:34.387Z","1.2.3":"2026-09-27T06:35:56.874Z"},"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","c"],"repository":{"url":"git+https://github.com/audiojs/weighting.git","type":"git","directory":"packages/weighting-c"},"description":"IEC 61672-1:2013 C-weighting: H(s) = K·s² / ((s+w1)²(s+w4)²)","maintainers":[{"name":"jamen","email":"jamenmarz@gmail.com"},{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"df.creative@gmail.com"}],"readme":"# @audio/weighting-c [![npm](https://img.shields.io/npm/v/@audio/weighting-c)](https://www.npmjs.com/package/@audio/weighting-c) [![MIT](https://img.shields.io/badge/MIT-%E0%A5%90-white)](https://github.com/krishnized/license)\n\nIEC 61672-1:2013 C-weighting filter — near-flat curve for high-SPL measurement\n\n```\nnpm install @audio/weighting-c\n```\n\n```js\nimport cWeighting from '@audio/weighting-c'\n```\n\nTime-domain C-weighting: matched-z discretization of the IEC 61672-1:2013 analog\nprototype `H(s) = K·s² / ((s+w1)²(s+w4)²)`, sharing A-weighting's outer poles —\nf1=20.598997 Hz (double), f4=12194.217 Hz (double) — but no mid-band poles, giving a\nnear-flat response across the audible range. 2 second-order sections, normalized to\nexactly 0 dB at 1 kHz.\n\n```js\ncWeighting(data)                          // in place, fs=44100\ncWeighting(data, { fs: 48000 })\nlet sos = cWeighting.coefs(48000)         // 2 SOS sections — feed digital-filter's freqz\ncWeighting.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 high-SPL or low-frequency-heavy sources (peak/impulse SPL, subwoofer output) where A-weighting's low-end rolloff would understate levels.\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"}