[sLoud, lLoud, mLoud] = moore2016(insig)
insig | Binaural audio signal (in Pa) sampled at the rate of 32 kHz. Size: (samples ear). Optionally, insig can be a column vector, which will be then interpreted as a diotic signal. |
sLoud | Column vector with the time-varying short-term loudness (in sone). Size: time (in ms). |
lLoud | Column vector with the time-varying long-term loudness (in sone). Size: time (in ms). |
mLoud | Maximal long-term loudness (in sone). |
moore2016(..) calculates loudness according to the model described by Moore et al. (2016), but with the modified time constants described by Moore et al. (2018). Under the hood, the signal insig is filtered by an outer and middle ear filter, then the short-term spectra and excitation patterns are calculated, as well as a compressive nonlinearity and a smoothing over time are applied. The short-term loudness is calculated as the sum of the ear-specific short-term loudness. The ear-specific long-term loudness is calculated based on the short-term loudness and the binaural long-term loudness is calculated as the sum of the ear-specific long-term loudness.
The original code was written for ANSI S3.4-2007, based on Moore et al. (1997) and Glasberg and Moore (2006) and ISO 532-2 (2017), based on Moore and Glasberg (2007).
Note: Most of the parameters are hard coded and the model structure is not optimal yet because the implementation is not complete yet.
B. C. J. Moore, M. Jervis, L. Harries, and J. Schlittenlacher. Testing and refining a loudness model for time-varying sounds incorporating binaural inhibition. The Journal of the Acoustical Society of America, 143(3):1504--1513, 03 2018. [ DOI ]
B. R. Glasberg and B. C. J. Moore. A Model of Loudness Applicable to Time-Varying Sounds. J. Audio Eng. Soc, 50(5):331--342, 2002. [ http ]
B. C. J. Moore, B. R. Glasberg, and T. Baer. A Model for the Prediction of Thresholds, Loudness, and Partial Loudness. J. Audio Eng. Soc, 45(4):224--240, 1997. [ http ]