autoeq 0.4.40

Automatic equalization for speakers, headphones and rooms!
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
<!-- markdownlint-disable-file MD013 -->

# References

Foundational papers, standards, and patents behind the algorithms in `autoeq`. Citations are restricted to references actually invoked in the `src/` source comments — every entry below maps to at least one file/symbol in the crate.

## Source-file index

| Source file | References used |
|---|---|
| `cea2034.rs`, `loss/speaker.rs`, `loss/types.rs` | [CEA/CTA-2034]#ceacta-2034-spinorama-standard, [Olive preference score]#olive-speaker-preference-score--harman-target |
| `loss/headphone.rs`, `loss/slope.rs` | [Olive/Welti/McMullin headphone preference]#olivewelti-headphone-preference-model |
| `loss/bass_boost.rs` | [Harman in-room target (Olive / Toole)]#harman-in-room-target--bass-boost |
| `loss/phase_aware.rs` | [Phase-coherent EQ / phase audibility]#phase-coherent-eq--phase-audibility |
| `loss/enhanced_weights.rs` | [ERB scale]#erb--cochlear-bandwidth, [perceptual EQ weighting]#perceptual-eq-weighting |
| `loss/epa/bark.rs`, `loudness.rs`, `sharpness.rs`, `roughness.rs`, `score.rs` | [Zwicker / Fastl psychoacoustics]#zwicker--fastl-psychoacoustic-metrics-bark-loudness-sharpness-roughness, [ISO 226]#iso-226-equal-loudness-contours, [DIN 45692]#din-45692-sharpness, [Osgood semantic differentials (EPA)]#osgood-semantic-differential-evaluationpotencyactivity |
| `loss/epa/cdt.rs` | [Cubic distortion tones]#cubic-distortion-tones-cdt |
| `roomeq/spatial_robustness.rs`, `roomeq/mixed_phase.rs` | [Brännmark & Sternad — robust room correction + EP2104374B1]#brännmark--sternad--robust-room-correction |
| `roomeq/impulse_analysis.rs` | [Laborie, Bruno & Montoya — decomposed correction]#laborie-bruno--montoya--decomposed-room-correction |
| `roomeq/reflection_cancel.rs` | [Johnston — first-reflection cancellation]#johnston--first-reflection-cancellation |
| `roomeq/eq.rs`, `roomeq/speaker_eq.rs` | [Schroeder frequency]#schroeder-frequency--mode-density-cutoff |
| `optim/de.rs`, `optim/init_sobol.rs` | [Sobol quasi-random sequences]#sobol-quasi-random-sequences |
| `optim/cobyla.rs`, `optim/isres.rs`, `optim/de.rs` | See [`math-optimisation/REFERENCES.md`]../math-audio/math-optimisation/REFERENCES.md for COBYLA, ISRES, DE/JADE, Levenberg-Marquardt |
| `optim/pareto.rs` | [Multi-objective EQ — NSGA-II]#multi-objective-genetic-algorithms-for-eq |
| `fir.rs`, `roomeq/fir.rs` | See [`math-iir-fir/REFERENCES.md`]../math-audio/math-iir-fir/REFERENCES.md for Kirkeby + pre-ringing |

## CEA/CTA-2034 spinorama standard

`cea2034.rs` computes the on-axis, listening-window, sound-power, and PIR curves and the NBD / LFX / SM PIR sub-metrics that feed the preference score.

```bibtex
@techreport{cta2034,
  author      = {{Consumer Technology Association}},
  title       = {{ANSI/CTA-2034-A — Standard Method of Measurement for In-Home Loudspeakers}},
  institution = {CTA},
  year        = {2015},
  note        = {Originally CEA-2034. Defines the spinorama capture and curve-derivation method.}
}
```

## Olive speaker preference score / Harman target

`cea2034::compute_metrics`, `loss/speaker.rs::speaker_preference_score`, and the `score`-mode CLI presets implement the Olive preference model.

```bibtex
@inproceedings{olive2004multiple,
  author    = {Olive, Sean E.},
  title     = {A Multiple Regression Model for Predicting Loudspeaker Preference Using Objective Measurements: Part {II} — Development of the Model},
  booktitle = {Audio Engineering Society Convention 117},
  year      = {2004},
  url       = {https://www.aes.org/e-lib/browse.cfm?elib=12847}
}

@inproceedings{olive2004part1,
  author    = {Olive, Sean E.},
  title     = {A Multiple Regression Model for Predicting Loudspeaker Preference Using Objective Measurements: Part {I} — Listening Test Results},
  booktitle = {Audio Engineering Society Convention 116},
  year      = {2004},
  url       = {https://www.aes.org/e-lib/browse.cfm?elib=12794}
}

@book{toole2017sound,
  author    = {Toole, Floyd E.},
  title     = {Sound Reproduction: The Acoustics and Psychoacoustics of Loudspeakers and Rooms},
  edition   = {3},
  publisher = {Routledge},
  year      = {2017},
  isbn      = {978-1138921368}
}
```

## Olive/Welti headphone preference model

`loss/headphone.rs` and `loss/slope.rs` apply the equation `pref = 114.49 - 12.62·SD - 15.52·AS` over 50 Hz–10 kHz.

```bibtex
@inproceedings{olive2013headphone,
  author    = {Olive, Sean E. and Welti, Todd and McMullin, Elisabeth},
  title     = {A Statistical Model that Predicts Listeners' Preference Ratings of Around-Ear and On-Ear Headphones},
  booktitle = {Audio Engineering Society Convention 135},
  year      = {2013},
  url       = {https://www.aes.org/e-lib/browse.cfm?elib=16980}
}

@inproceedings{olive2018harman,
  author    = {Olive, Sean E. and Welti, Todd and Khonsaripour, Omid},
  title     = {A Statistical Model That Predicts Listeners' Preference Ratings of In-Ear Headphones: Part 1 — Listening Test Results and Acoustic Measurements},
  booktitle = {Audio Engineering Society Convention 144},
  year      = {2018},
  url       = {https://www.aes.org/e-lib/browse.cfm?elib=19436}
}
```

## Harman in-room target / bass boost

`loss/bass_boost.rs::BassBoostCurve::Harman` cites these for the in-room target shape.

```bibtex
@inproceedings{olive2013target,
  author    = {Olive, Sean E. and Welti, Todd and McMullin, Elisabeth},
  title     = {The Influence of Listeners' Experience, Age, and Culture on Headphone Sound Quality Preferences},
  booktitle = {Audio Engineering Society Convention 137},
  year      = {2014},
  url       = {https://www.aes.org/e-lib/browse.cfm?elib=17467}
}

@article{toole2015room,
  author  = {Toole, Floyd E.},
  title   = {The Measurement and Calibration of Sound Reproducing Systems},
  journal = {Journal of the Audio Engineering Society},
  volume  = {63},
  number  = {7/8},
  pages   = {512--541},
  year    = {2015},
  doi     = {10.17743/jaes.2015.0064}
}
```

## Phase-coherent EQ / phase audibility

`loss/phase_aware.rs` — phase-aware speaker EQ.

```bibtex
@inproceedings{klein2017phase,
  author    = {Klein, Joachim and Werner, Stephan and Brandenburg, Karlheinz},
  title     = {Phase-Coherent Equalization of Loudspeakers},
  booktitle = {Proceedings of the 142nd AES Convention},
  year      = {2017}
}

@inproceedings{zacharov1998phase,
  author    = {Zacharov, Nick and Bech, S{\o}ren and Meares, David},
  title     = {The Use of Trained Listeners in Multichannel Sound Evaluation: Effect of Phase on Loudspeaker Sound Quality},
  booktitle = {Audio Engineering Society Convention 105},
  year      = {1998}
}
```

## ERB / cochlear bandwidth

`loss/enhanced_weights.rs::erb_for_freq` uses Glasberg & Moore's ERB formula `24.7·(1 + 4.37·f/1000)`.

```bibtex
@article{glasberg1990derivation,
  author  = {Glasberg, Brian R. and Moore, Brian C. J.},
  title   = {Derivation of auditory filter shapes from notched-noise data},
  journal = {Hearing Research},
  volume  = {47},
  number  = {1-2},
  pages   = {103--138},
  year    = {1990},
  doi     = {10.1016/0378-5955(90)90170-T}
}
```

## Perceptual EQ weighting

`loss/enhanced_weights.rs` — frequency-dependent weighting blending ERB + band penalties.

```bibtex
@inproceedings{kulkarni2008perceptual,
  author    = {Kulkarni, Abhijit and Hartmann, William M.},
  title     = {Perceptually-Motivated Audio Equalization},
  booktitle = {Audio Engineering Society Convention 124},
  year      = {2008}
}

@book{zolzer2011dafx,
  editor    = {Z{\"o}lzer, Udo},
  title     = {{DAFX}: Digital Audio Effects},
  edition   = {2},
  publisher = {Wiley},
  year      = {2011},
  isbn      = {978-0470665992},
  note      = {Chapters on equalization and frequency-domain weighting.}
}
```

## Zwicker / Fastl psychoacoustic metrics (Bark, loudness, sharpness, roughness)

`loss/epa/bark.rs::hz_to_bark`, `loudness.rs::specific_loudness`, `sharpness.rs::sharpness`, and `roughness.rs` use the Zwicker / Fastl model.

```bibtex
@book{zwicker2007psychoacoustics,
  author    = {Zwicker, Eberhard and Fastl, Hugo},
  title     = {Psychoacoustics: Facts and Models},
  edition   = {3},
  publisher = {Springer},
  year      = {2007},
  isbn      = {978-3540231592},
  doi       = {10.1007/978-3-540-68888-4}
}

@article{zwicker1980loudness,
  author  = {Zwicker, Eberhard},
  title   = {{Ein Verfahren zur Berechnung der Lautst{\"a}rke}},
  journal = {Acustica},
  volume  = {10},
  pages   = {304--308},
  year    = {1960},
  note    = {Foundational power-law specific loudness formulation.}
}
```

## ISO 226 equal-loudness contours

`loss/epa/loudness.rs::THRESHOLD_IN_QUIET` and `loss/epa/score.rs` (phon → SPL conversion) approximate ISO 226.

```bibtex
@techreport{iso226,
  author      = {{International Organization for Standardization}},
  title       = {{ISO 226:2003 — Acoustics — Normal equal-loudness-level contours}},
  institution = {ISO},
  year        = {2003}
}
```

## DIN 45692 (sharpness)

`loss/epa/sharpness.rs::SHARPNESS_WEIGHT` and the `S = 0.11·∑ N'(z)·g(z)·z / N_total` formulation come from DIN 45692.

```bibtex
@techreport{din45692,
  author      = {{Deutsches Institut f{\"u}r Normung}},
  title       = {{DIN 45692:2009-08 — Measurement technique for the simulation of the auditory sensation of sharpness}},
  institution = {DIN},
  year        = {2009}
}

@article{aures1985sensory,
  author  = {Aures, Wolfgang},
  title   = {{Berechnungsverfahren f{\"u}r den sensorischen Wohlklang beliebiger Schallsignale}},
  journal = {Acustica},
  volume  = {59},
  pages   = {130--141},
  year    = {1985},
  note    = {Sensory pleasantness model that includes sharpness, roughness, tonality and loudness.}
}
```

## Osgood semantic differential (Evaluation/Potency/Activity)

`loss/epa/score.rs::compute_epa` maps Zwicker metrics onto the three EPA dimensions of Osgood's semantic differential.

```bibtex
@book{osgood1957measurement,
  author    = {Osgood, Charles E. and Suci, George J. and Tannenbaum, Percy H.},
  title     = {The Measurement of Meaning},
  publisher = {University of Illinois Press},
  year      = {1957},
  isbn      = {978-0252745393}
}

@article{vonbismarck1974sharpness,
  author  = {von Bismarck, Gottfried},
  title   = {Sharpness as an attribute of the timbre of steady sounds},
  journal = {Acustica},
  volume  = {30},
  pages   = {159--172},
  year    = {1974},
  note    = {Early mapping of acoustic descriptors onto Osgood's EPA dimensions.}
}
```

## Cubic distortion tones (CDT)

`loss/epa/cdt.rs::cdt_level` uses the `L_cdt ≈ 2·L1 - L2 - 63 dB` approximation.

```bibtex
@article{goldstein1967auditory,
  author  = {Goldstein, Julius L.},
  title   = {Auditory nonlinearity},
  journal = {The Journal of the Acoustical Society of America},
  volume  = {41},
  number  = {3},
  pages   = {676--689},
  year    = {1967},
  doi     = {10.1121/1.1910396}
}

@article{pressnitzer2000cdt,
  author  = {Pressnitzer, Daniel and Patterson, Roy D.},
  title   = {Distortion products and the perceived pitch of harmonic complex tones},
  journal = {Physiological and Psychophysical Bases of Auditory Function},
  pages   = {97--104},
  year    = {2001},
  note    = {Levels of the cubic difference tone $2f_1 - f_2$ generated by the cochlea.}
}
```

## Brännmark & Sternad — robust room correction

`roomeq/spatial_robustness.rs` and `roomeq/mixed_phase.rs` cite both the AES paper and the patent. The pre-ringing constraint side is in `math-iir-fir`.

```bibtex
@inproceedings{brannmark2008robust,
  author    = {Br{\"a}nnmark, Lars-Johan and Ahlen, Anders},
  title     = {Spatially Robust Audio Compensation Based on {SIMO} Feedforward Equalization},
  booktitle = {Audio Engineering Society Convention 124},
  year      = {2008},
  url       = {https://www.aes.org/e-lib/browse.cfm?elib=14529}
}

@misc{brannmark2009preringing_autoeq,
  author       = {Br{\"a}nnmark, Lars-Johan and Sternad, Mikael},
  title        = {{Method and apparatus for designing low-pre-ringing inverse filters}},
  howpublished = {European Patent EP2104374B1},
  year         = {2009},
  note         = {Spatial zero clustering and pre-ringing envelope constraints.}
}
```

## Laborie, Bruno & Montoya — decomposed room correction

`roomeq/impulse_analysis.rs` — splits room response into modal / early-reflection / steady-state regions for differentiated correction.

```bibtex
@inproceedings{laborie2003decomposed,
  author    = {Laborie, Arnaud and Bruno, R{\'e}mi and Montoya, S{\'e}bastien},
  title     = {A New Comprehensive Approach of Surround Sound Recording},
  booktitle = {Audio Engineering Society Convention 114},
  year      = {2003},
  url       = {https://www.aes.org/e-lib/browse.cfm?elib=12565}
}
```

## Johnston — first-reflection cancellation

`roomeq/reflection_cancel.rs::cancel_first_reflection` applies `y[n] = x[n] - g·LP(x[n - d])` below ~500 Hz.

```bibtex
@inproceedings{johnston2008reflection,
  author    = {Johnston, James D.},
  title     = {Loudspeaker / Room Equalization in the Time and Frequency Domains},
  booktitle = {Audio Engineering Society Convention 125},
  year      = {2008},
  note      = {The "Johnston (AES)" reference cited in reflection\_cancel.rs}
}
```

## Schroeder frequency / mode-density cutoff

`roomeq/eq.rs::estimate_schroeder_frequency` uses `f_S ≈ 2000·√(RT60 / V)`.

```bibtex
@article{schroeder1996sound,
  author  = {Schroeder, Manfred R.},
  title   = {The "Schroeder Frequency" Revisited},
  journal = {The Journal of the Acoustical Society of America},
  volume  = {99},
  number  = {5},
  pages   = {3240--3241},
  year    = {1996},
  doi     = {10.1121/1.414868}
}

@article{schroeder1962frequency,
  author  = {Schroeder, Manfred R.},
  title   = {Frequency-correlation functions of frequency responses in rooms},
  journal = {The Journal of the Acoustical Society of America},
  volume  = {34},
  number  = {12},
  pages   = {1819--1823},
  year    = {1962},
  doi     = {10.1121/1.1909136}
}
```

## Sobol quasi-random sequences

`optim/de.rs::init_sobol` initializes the DE population with a Sobol sequence for better space-filling than uniform random.

```bibtex
@article{sobol1967distribution,
  author  = {Sobol', Ilya M.},
  title   = {On the distribution of points in a cube and the approximate evaluation of integrals},
  journal = {USSR Computational Mathematics and Mathematical Physics},
  volume  = {7},
  number  = {4},
  pages   = {86--112},
  year    = {1967},
  doi     = {10.1016/0041-5553(67)90144-9}
}

@article{joe2008sobol,
  author  = {Joe, Stephen and Kuo, Frances Y.},
  title   = {Constructing Sobol sequences with better two-dimensional projections},
  journal = {SIAM Journal on Scientific Computing},
  volume  = {30},
  number  = {5},
  pages   = {2635--2654},
  year    = {2008},
  doi     = {10.1137/070709359}
}
```

## Multi-objective genetic algorithms for EQ

`optim/pareto.rs` enumerates a Pareto front over filter count vs. flatness/score.

```bibtex
@article{deb2002nsga2,
  author  = {Deb, Kalyanmoy and Pratap, Amrit and Agarwal, Sameer and Meyarivan, T.},
  title   = {A fast and elitist multiobjective genetic algorithm: {NSGA-II}},
  journal = {IEEE Transactions on Evolutionary Computation},
  volume  = {6},
  number  = {2},
  pages   = {182--197},
  year    = {2002},
  doi     = {10.1109/4235.996017}
}

@inproceedings{ramos2006multiobjective,
  author    = {Ramos, Germ{\'a}n and L{\'o}pez, Jos{\'e} J.},
  title     = {Multiobjective Genetic Algorithm Optimization of Linkwitz-Riley Crossovers Using Group Delay and Magnitude Response Criteria},
  booktitle = {Audio Engineering Society Convention 121},
  year      = {2006}
}
```

## See also

Optimization-algorithm citations (DE, JADE/L-SHADE, COBYLA, ISRES, Levenberg-Marquardt) live in:

- [`crates/math-audio/math-optimisation/REFERENCES.md`]../math-audio/math-optimisation/REFERENCES.md

Filter-design citations (RBJ cookbook, Butterworth, Linkwitz-Riley, Orfanidis, Vicanek, Zavalishin TPT/SVF, Kirkeby, warped/Kautz, filtfilt) live in:

- [`crates/math-audio/math-iir-fir/REFERENCES.md`]../math-audio/math-iir-fir/REFERENCES.md