> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# sound:compute level over time

**Version: 0.0.0**

## Description

Compute level over time of a signal, on a decibel (dB) scale, or a linear, root-mean-square (RMS) scale. In the case of a dB scale, the actual unit of the returned value will depend on the specified reference value, and frequency weighting (Z, A, B, or C).

## Inputs

| Input | Name | Expected type(s) | Description |
| - | - | - | - |
| **Pin 0** Required | input\_signal | [`field`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#field) | Input signal for the level computation. |
| **Pin 1** | scale\_unit | [`int32`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types) | Expected level scale unit, that is, whether level should be output on a decibel scale, or on a linear, root-mean-square (RMS) scale. Supported values are: - 0: dB; - 1: RMS. Default: 0 (dB). |
| **Pin 2** | reference\_value | [`double`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types) | Reference value for dB calculation. For example, 2e-5 Pa is the reference value for dB SPL, dBA, dBB, and dBC. Reference value is ignored if input scale\_unit is set to 1 (RMS). If frequency\_weighting is set to either 1 (A), 2 (B), or 3 (C), reference\_value should be 2e-5 Pa. Default: 1.0. |
| **Pin 3** | frequency\_weighting | [`int32`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types) | Frequency weighting for dB calculation. Frequency weighting is ignored if input scale\_unit is set to 1 (RMS). Supported values are: - 0: Z-weigthing (no frequency weighting, use this setting in case dB SPL); - 1: A-weigthing; - 2: B-weigthing; - 3: C-weigthing. If frequency\_weighting is set to either 1 (A), 2 (B), or 3 (C), reference\_value should be 2e-5 Pa.Default: 0 (Z-weighting). |
| **Pin 4** | time\_weighting | [`int32`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types) | Time weighting for dB calculation, as described in the IEC-61672 standard. Supported values are: - 0: Slow; - 1: Fast; - 2: Impulse; - 3: Custom; Default: 1 (Fast). |
| **Pin 5** | time\_step | [`double`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types) | Time step of the level over time calculation, in seconds. Time step is ignored if input time\_weighting is not set to 3 (Custom). Default: 0.025 s. |
| **Pin 6** | window\_size | [`double`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types) | Window size in seconds, that is, the length of the slice of signal used to calculate the level at each time step. Window size is ignored if input time\_weighting is not set to 3 (Custom). Default value: 1s. |
| **Pin 7** | window\_type | [`string`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types) | Type of the window applied to the slice of signal used to calculate the level at each time step. Supported values are:'RECTANGULAR', 'HANN', 'HAMMING', 'BLACKMAN', 'BLACKMANHARRIS', 'BARTLETT'.Default: 'RECTANGULAR'. |

## Outputs

| Output | Name | Expected type(s) | Description |
| - | - | - | - |
| **Pin 0** | maximum\_level | [`double`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types) | Maximum level attained by the level over time curve, in the unit specified according to inputs (dB, dB SPL, dBA, dBB, dBC or RMS). |
| **Pin 1** | level\_over\_time | [`field`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#field) | Level over time, in a unit that depends on inputs scale\_unit, reference\_value, and frequency\_weighting. |

## Configurations

| Name | Expected type(s) | Default value | Description |
| - | - | - | - |
| **mutex** | [`bool`](https://developer.synopsys.com/docs/dpf/dpf-framework/2025-r2/core-concepts/dpf-types#standard-types) | false | If this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads. |

## Scripting

**Category**: sound

**Plugin**: sound

**Scripting name**: None

**Full name**: None

**Internal name**: compute\_level\_over\_time

**License**: avrxp\_snd\_level1

## Changelog

* Version 0.0.0: Initial release.
