# NumpyLibforPsychoAcoustic

> Part of [LISQM](https://zhenxianli.github.io/LISQM/) (List of Implementations of Sound Quality Metrics), a list of open-source implementations of psychoacoustic metrics. Data as of 2026-10-28. Web page: https://zhenxianli.github.io/LISQM/projects/numpylib-psychoacoustic.html

**Newly released project.** First published on GitHub in November 2025. Not yet seen to be widely used in the community. Check its validation before relying on it.

Python (NumPy) adaptation of loudness models from the Auditory Modeling Toolbox (AMT), written as a second-year student project at Mines School of Nancy: the stationary model of Moore, Glasberg & Baer (1997) and the time-varying model of Glasberg & Moore (2002).

- **Repository:** https://github.com/Ryrybros/NumpyLibforPsychoAcoustic
- **Language:** Python
- **Kind:** Research code (Code published with a study, a thesis or a student project, to run or adapt; not packaged as a library.)
- **Group:** newly released (First released less than about a year ago, and not yet seen to be widely used in the community.)
- **Licence:** none
- **Latest release:** no release
- **Last commit:** 2026-06-07 (active)
- **GitHub stars:** 0
- **Maintainers:** Ryrybros
- **AI assistance:** not stated
- **How to cite:** The project does not say how to cite it. Cite the repository with the version or commit you used.
- **Entry checked:** 2026-10-06

## What it implements

| Metric | Edition | Functions | Status | Validation (as stated) | Notes |
|---|---|---|---|---|---|
| [Moore–Glasberg loudness](https://zhenxianli.github.io/LISQM/metrics/loudness-moore-glasberg.html) | [Moore, Glasberg & Baer (1997)](https://aes2.org/publications/elibrary-page/?id=10272) | `model.moore1997`, `equalSones.getEqualSones` | available | standard or paper data; also compared with AMT (its source) | — |
| [Time-varying loudness (Moore–Glasberg–Schlittenlacher)](https://zhenxianli.github.io/LISQM/metrics/loudness-moore-glasberg-time-varying.html) | [Glasberg & Moore (2002)](https://aes2.org/publications/elibrary-page/?id=11081) | `model.glasberg2002` | available | not stated | Present in the code but not described in the implementation document. |

## How it was validated

As reported by the project; LISQM has not run the code. Two implementations that agree can still share the same error.

- [Moore–Glasberg loudness](https://zhenxianli.github.io/LISQM/metrics/loudness-moore-glasberg.html), Moore, Glasberg & Baer (1997): standard or paper data; also compared with [AMT](https://zhenxianli.github.io/LISQM/projects/amt.html) (its source)
  - Ported or adapted from [AMT](https://zhenxianli.github.io/LISQM/projects/amt.html). It was compared with the code it was ported from, which checks the port only.
  - The implementation document says the model is compared with the results shown in the original article (plots of its Fig. 8 and Fig. 12).
  - Numerical error reports (PDF) compare intermediate arrays, such as the outer- and middle-ear filter, with AMT's MATLAB output.

Not stated for Time-varying loudness (Moore–Glasberg–Schlittenlacher) · Glasberg & Moore (2002).

## Notes

- The implementation document says the Moore (1997) model is "the same code as the amt-toolbox one"; the data preparation follows AMT's Glasberg (2002) data function.
- GitHub labels the repository TypeScript because of the React/Vite user interface in UI/Model_UI; the models are Python.

## Before you rely on it

- No licence file, so reuse is not permitted by default.
- The implementation document describes only the Moore (1997) model as implemented; `glasberg2002` is in the code (with data/Glasberg2002.json) but not documented.

## Sources

- https://github.com/Ryrybros/NumpyLibforPsychoAcoustic
- https://github.com/Ryrybros/NumpyLibforPsychoAcoustic/blob/main/README.md
- https://github.com/Ryrybros/NumpyLibforPsychoAcoustic/blob/main/Documentation/Implementation_documentation.pdf
- https://github.com/Ryrybros/NumpyLibforPsychoAcoustic/tree/main/Numerical_error_report
