@audio/measure 1.1.5 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -40,6 +40,6 @@ snr(clean, processed) // dB; lsd(a, b) — log-spectral distance, dB
40
40
 
41
41
  `await correct(measured, {fs, target='flat', fMin=20, fMax=20000, smoothOct=1/6, maxBoost=6, maxCut=20, regularization=0.1, mode='fir'|'parametric'|'both', taps=4095, minPhase=false}) → {correction, coefs?, bands?, preamp?, residual, rms}` — `measured` is an IR, a `{freqs, db}` response or `[{f, gain}]` points; `target` a `@audio/spectral-target` preset, points, or function (a Harman headphone target, say). FIR via `@audio/eq-fir`, parametric via `@audio/eq-fit`; `toWavIr()` exports the FIR for convolution hosts, `toEqualizerApo()` the bands (see `packages/measure-correct`).
42
42
 
43
- `@audio/quality` exports `snr`, `segSnr`, `lsd`, `spectralSim`, `nrr`, `speechAttenuation`, `goertzelEnergy`, `chordBalance`, `chordRetention`, `modulationDepth` — reference-vs-output metrics for evaluating denoisers, stretchers, codecs, resamplers (see `packages/quality/README.md`). The Goertzel-family functions (`goertzelEnergy` etc.) take a positional sample rate.
43
+ `@audio/quality` exports `snr`, `segSnr`, `lsd`, `spectralSim`, `nrr`, `speechAttenuation`, `goertzelEnergy`, `chordBalance`, `chordRetention`, `modulationDepth`, `stoi`, `estoi` — reference-vs-output metrics for evaluating denoisers, stretchers, codecs, resamplers (see `packages/quality/README.md`). The Goertzel-family functions (`goertzelEnergy` etc.) take a positional sample rate.
44
44
 
45
45
  Sweep generation = `@audio/synth-chirp`; deconvolution = inverse-sweep convolution via `fourier-transform` FFT. The practical-VST/recording surface: measure once, convolve forever.
package/index.d.ts CHANGED
@@ -7,7 +7,7 @@ export { default as response } from '@audio/measure-response'
7
7
  export { default as lossy } from '@audio/measure-lossy'
8
8
  export { default as correct, toWavIr } from '@audio/measure-correct'
9
9
 
10
- export { snr, segSnr, lsd, spectralSim, nrr, speechAttenuation, goertzelEnergy, chordBalance, chordRetention, modulationDepth } from '@audio/quality'
10
+ export { snr, segSnr, lsd, spectralSim, nrr, speechAttenuation, goertzelEnergy, chordBalance, chordRetention, modulationDepth, stoi, estoi } from '@audio/quality'
11
11
  export type { AlignOptions, AlignResult } from '@audio/measure-align'
12
12
  export type { CurvePoint, CurveData, TargetPreset, CorrectBand, CorrectOptions, CorrectResult } from '@audio/measure-correct'
13
13
  export type { IROptions } from '@audio/measure-ir'
package/index.js CHANGED
@@ -7,4 +7,4 @@ export { default as response } from '@audio/measure-response'
7
7
  export { default as lossy } from '@audio/measure-lossy'
8
8
  export { default as correct, toWavIr } from '@audio/measure-correct'
9
9
 
10
- export { snr, segSnr, lsd, spectralSim, nrr, speechAttenuation, goertzelEnergy, chordBalance, chordRetention, modulationDepth } from '@audio/quality'
10
+ export { snr, segSnr, lsd, spectralSim, nrr, speechAttenuation, goertzelEnergy, chordBalance, chordRetention, modulationDepth, stoi, estoi } from '@audio/quality'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@audio/measure",
3
- "version": "1.1.5",
3
+ "version": "1.2.0",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "description": "Acoustic & system measurement — umbrella for @audio/measure-* atoms (IR capture, response, latency)",
@@ -34,14 +34,15 @@
34
34
  "scripts": {
35
35
  "test": "node test.js",
36
36
  "test:all": "npm test --workspaces --if-present && npm test",
37
- "publish:all": "npm publish --workspaces && npm publish"
37
+ "publish:all": "node ../compile/tools/tested.js && npm publish --workspaces && npm publish",
38
+ "prepublishOnly": "node ../compile/tools/tested.js"
38
39
  },
39
40
  "dependencies": {
40
41
  "@audio/measure-ir": "^1.0.0",
41
42
  "@audio/measure-latency": "^1.0.0",
42
43
  "@audio/measure-align": "^1.0.0",
43
44
  "@audio/measure-response": "^1.0.0",
44
- "@audio/quality": "^1.0.0",
45
+ "@audio/quality": "^1.1.0",
45
46
  "@audio/measure-lossy": "^0.1.0",
46
47
  "@audio/measure-correct": "^0.1.0"
47
48
  },