Main Content

Loudness Meter

Standard-compliant loudness measurements

  • Library:
  • Audio Toolbox / Measurements

  • Loudness Meter block

Description

TheLoudness Meterblock measures the loudness and true-peak of an audio signal based on EBU R 128 and ITU-R BS.1770-4 standards.

Ports

Input

expand all

  • Matrix input –– Each column of the input is treated as an independent channel. If you use the defaultChannel weights, specify the input channels in order: [Left, Right, Center, Left surround, Right surround].

  • 1-D vector input –– The input is treated as a single channel.

Data Types:single|double

Output

expand all

The block outputs a column vector with the same data type and number of rows as the input signal.

Data Types:single|double

The block outputs a column vector with the same data type and number of rows as the input signal.

Data Types:single|double

The block outputs a real scalar with the same data type as the input signal.

Dependencies

来enable this port, select theOutput true-peak valueparameter.

Data Types:single|double

Parameters

expand all

If a parameter is listed as tunable, then you can change its value during simulation.

The number of elements of the row vector must be equal to or greater than the number of input channels. Excess values in the vector are ignored.

The default channel weights follow the ITU-R BS.1170-4 standard. To use the default channel weights, specify the input to theLoudness Meterblock as a matrix whose columns correspond to channels in this order: [Left, Right, Center, Left surround, Right surround].

It is a best practice to specify the channel weights in order: [Left, Right, Center, Left surround, Right surround].

可调:Yes

  • On — The loudness measurements are relative to the value specified byTarget loudness level (LUFS). The output of the block is returned in loudness units (LU).

  • Off — The loudness measurements are absolute, and returned in loudness units full scale (LUFS).

可调:No

For example, if theTarget loudness level (LUFS)is –23, then a loudness value of –24 LUFS is reported as –1 LU.

可调:Yes

Dependencies

来enable this parameter, select theUse relative scale for loudness measurementsparameter.

When you select this parameter, an additional output port,TP, is added to the block. TheTPport outputs the true-peak value of the input frame.

可调:No

When you select this parameter, the block inherits its sample rate from the input signal. When you clear this parameter, you specify the sample rate inInput sample rate (Hz).

可调:No

可调:Yes

Dependencies

来enable this parameter, clear theInherit sample rate from inputparameter.

  • Code generation–– Simulate model using generated C code. The first time you run a simulation, Simulink®generates C code for the block. The C code is reused for subsequent simulations, as long as the model does not change. This option requires additional startup time but the speed of the subsequent simulations is comparable toInterpreted execution.

  • Interpreted execution–– Simulate model using the MATLAB®interpreter. This option shortens startup time but has a slower simulation speed thanCode generation. In this mode, you can debug the source code of the block.

可调:No

Block Characteristics

Data Types

double|single

Direct Feedthrough

no

Multidimensional Signals

no

Variable-Size Signals

yes

Zero-Crossing Detection

no

Algorithms

expand all

TheLoudness Meterblock calculates the momentary loudness, short-term loudness, and true-peak value of an audio signal. You can specify any number of channels and nondefault channel weights used for loudness measurements. The block algorithm is described for the general case ofnchannels and default channel weights.

References

[1] International Telecommunication Union; Radiocommunication Sector.Algorithms to Measure Audio Programme Loudness and True-Peak Audio Level.ITU-R BS.1770-4. 2015.

[2] European Broadcasting Union.Loudness Normalisation and Permitted Maximum Level of Audio Signals.EBU R 128. 2014.

[3] European Broadcasting Union.Loudness Metering: 'EBU Mode' Metering to Supplement EBU R 128 Loudness Normalization.EBU R 128 Tech 3341. 2014.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced in R2016b