kfrlib / kfr

Fast, modern C++ DSP framework, FFT, Sample Rate Conversion, FIR/IIR/Biquad Filters (SSE, AVX, AVX-512, ARM NEON)
https://www.kfrlib.com
GNU General Public License v2.0
1.65k stars 253 forks source link

Is it possible to compute True Peak loudness using kfr's ebu128 ? #98

Closed kakyoism closed 4 years ago

kakyoism commented 4 years ago

As title. The builtin ebu128 feature set is neat, but it's unclear to me whether it uses True Peak or user has to specify it.

samuelriddle commented 4 years ago

You can compute True Peak using Sample Rate Conversion (dsp/sample_rate_conversion.hpp). Use draft quality and set factor to 4 for sample rates below 96000, 2 for sample rates below 192000. For anything above, Sample Peak = True Peak.

This way is tested and proven to give the correct results matching EBU requirements.