{"_id":"@audio/measure-response","_rev":"2-72b3b918f362ab3ea38fca90334c1217","name":"@audio/measure-response","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@audio/measure-response","version":"1.0.0","keywords":["audio","dsp","measurement","response"],"author":{"name":"Dmitry Iv.","email":"dfcreative@gmail.com"},"license":"MIT","_id":"@audio/measure-response@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":"167af3c563752b0460e562cea65ed66f1b8023a8","tarball":"https://registry.npmjs.org/@audio/measure-response/-/measure-response-1.0.0.tgz","fileCount":2,"integrity":"sha512-igTRKqQseutrVS/btaD+Ru/FWRXtuVOjBqVDRCc0Z2STT3dpbKJBBWqIekCdw6jACN9s+sgML0cOi8N5lYp+ag==","signatures":[{"sig":"MEQCIA1DqcOqW6Yab19syVev5e//oAQLcLYOlG6i5fdMf4srAiBiQuMNFSXvLVMqXgvZ3aFoFDmSEkY+9bEkLgL0ZhQAEg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1503},"main":"response.js","type":"module","engines":{"node":">=18"},"exports":{".":"./response.js","./package.json":"./package.json"},"gitHead":"daf713bfbd560c7730c8492bb420abffdbfebcf8","_npmUser":{"name":"dy","email":"df.creative@gmail.com"},"_npmVersion":"11.12.1","description":"Frequency response from an impulse response — zero-padded FFT magnitude","directories":{},"sideEffects":false,"_nodeVersion":"25.9.0","dependencies":{"fourier-transform":"^2.2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/measure-response_1.0.0_1783540375590_0.24107111678445037","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@audio/measure-response","version":"1.0.1","description":"Frequency response from an impulse response — zero-padded FFT magnitude","type":"module","sideEffects":false,"main":"response.js","exports":{".":"./response.js","./package.json":"./package.json"},"dependencies":{"fourier-transform":"^2.2.0"},"keywords":["audio","dsp","measurement","response"],"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/measure.git","directory":"packages/measure-response"},"types":"index.d.ts","funding":"https://github.com/sponsors/audiojs","gitHead":"9dcc57aa1a8a1dc669478cc4c9b25f3d28d1dfc0","_id":"@audio/measure-response@1.0.1","bugs":{"url":"https://github.com/audiojs/measure/issues"},"homepage":"https://github.com/audiojs/measure#readme","_nodeVersion":"25.9.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-b87std/9fPs3tsFdA4WrS2BAQZWT66Pn1XDDhMPJvqyExWbcV23WA2tH6hnA94/CoLfyWkYU0HIzXAHKqTDn1w==","shasum":"f111cb4ecce518e7966d983895ce9f8206222399","tarball":"https://registry.npmjs.org/@audio/measure-response/-/measure-response-1.0.1.tgz","fileCount":4,"unpackedSize":3688,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDHYmowyVKxKZi3VM+xV+PH7RHDoUSbOiVUL66QTo7miQIhANEZHHD3j9DywTicfXV/U6MuDurs39e49b1aT1IM5+n0"}]},"_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/measure-response_1.0.1_1783731644260_0.931262617469496"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-08T19:52:55.454Z","modified":"2026-07-11T01:00:44.616Z","1.0.0":"2026-07-08T19:52:55.721Z","1.0.1":"2026-07-11T01:00:44.447Z"},"author":{"name":"Dmitry Iv.","email":"dfcreative@gmail.com"},"license":"MIT","keywords":["audio","dsp","measurement","response"],"description":"Frequency response from an impulse response — zero-padded FFT magnitude","maintainers":[{"name":"jamen","email":"jamenmarz@gmail.com"},{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"df.creative@gmail.com"}],"readme":"# @audio/measure-response [![npm](https://img.shields.io/npm/v/@audio/measure-response)](https://www.npmjs.com/package/@audio/measure-response) [![MIT](https://img.shields.io/badge/MIT-%E0%A5%90-white)](https://github.com/krishnized/license)\n\nFrequency response from an impulse response — zero-padded FFT magnitude\n\n```\nnpm install @audio/measure-response\n```\n\n```js\nimport response from '@audio/measure-response'\n```\n\nZero-pads the impulse response to `n` samples and takes its FFT magnitude in dB — the frequency response of whatever produced the IR. Pair with `@audio/measure-ir`: sweep the device, deconvolve to an IR, read the response.\n\n```js\nlet { freqs, db } = response(h, { fs, n: 8192 })\n```\n\n| Param | Default | |\n|---|---|---|\n| `ir` | — | impulse response (`Float32Array`) |\n| `fs` | `44100` | sample rate |\n| `n` | `8192` | FFT size; doubled up to the next power of 2 ≥ `ir.length` |\n\nReturns:\n\n| Field | | |\n|---|---|---|\n| `freqs` | `Float32Array` | bin center frequencies, Hz — length `n/2 + 1` |\n| `db` | `Float32Array` | magnitude, dB |\n\n**Use when:** reading the frequency response of a room, cabinet, or chain after IR capture — EQ matching, cabinet comparison, room-mode inspection.\n\n---\n\nPart of [@audio/measure](https://github.com/audiojs/measure) — the measure family umbrella.\n\nMIT © [audiojs](https://github.com/audiojs)\n","readmeFilename":"README.md","homepage":"https://github.com/audiojs/measure#readme","repository":{"type":"git","url":"git+https://github.com/audiojs/measure.git","directory":"packages/measure-response"},"bugs":{"url":"https://github.com/audiojs/measure/issues"}}