> ## 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 tonality DIN 45681

**Version: 0.0.0**

## Description

Compute the tonality of a signal, according to the DIN 45681 standard.

## Inputs

| Input | Name | Expected type(s) | Description |
| - | - | - | - |
| **Pin 0** Required | input\_signal | [`field`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#field) | Input signal in Pa on which to compute the DIN 45681 tonality. |
| **Pin 1** | window\_length | [`double`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#standard-types) | Analysis window length in seconds. Default: 3 s. |
| **Pin 2** | overlap | [`double`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#standard-types) | Percentage of each analysis window that overlaps with the next, in %. Default: 0 %. |

## Outputs

| Output | Name | Expected type(s) | Description |
| - | - | - | - |
| **Pin 0** | output\_mean\_difference\_dl | [`double`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#standard-types) | Tonality (mean difference DL) in dB. |
| **Pin 1** | output\_mean\_difference\_uncertainty | [`double`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#standard-types) | Tonality's uncertainty in dB. |
| **Pin 2** | output\_tonal\_adjustment\_kt | [`double`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#standard-types) | Tonal adjustment (Kt) in dB. |
| **Pin 3** | output\_decisive\_difference\_over\_time | [`field`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#field) | Tonality over time (decisive difference over time DLj) in dB. |
| **Pin 4** | output\_decisive\_difference\_uncertainty\_over\_time | [`field`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#field) | Tonality's uncertainty over time in dB. |
| **Pin 5** | output\_decisive\_frequency\_over\_time | [`field`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#field) | Decisive frequency over time in Hz. |
| **Pin 6** | output\_tonal\_adjustment\_over\_time | [`field`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#field) | Tonal adjustment (Kt) over time in dB. |
| **Pin 7** | output\_calculation\_details | [`any_collection`](https://developer.synopsys.com/docs/dpf/dpf-framework/core-concepts/dpf-types#any-collection) | DIN 45681 calculation details. This data container contains a collection of the computation details for each analyzed spectrum. |
| For each spectrum, stored details is organized in fields, where each field corresponds to one of the following output parameters, and provides its values for all detected tones: | | | |

* **differences**: Decisive difference DLj in dB
* **uncertainties**: Uncertainty in dB
* **frequencies**: Decisive frequency in Hz
* **typesv**: Tone type ('' for individual tones, or '**FG**' for groups of tones)
* **critical\_band\_lower\_limits**: Critical band lower limit, in Hz
* **critical\_band\_upper\_limits**: Critical band upper limit, in Hz
* **mean\_narrowband\_masking\_noise\_levels**: Mean narrow-band masking noise level Ls, in dBA
* **tone\_levels**: Tone level Lt, in dBA
* **masking\_noise\_levels**: Masking noise level Lg, in dBA
* **masking\_indices**: Masking index av, in dB. |

## Configurations

| Name | Expected type(s) | Default value | Description |
| - | - | - | - |
| **mutex** | [`bool`](https://developer.synopsys.com/docs/dpf/dpf-framework/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\_tonality\_din45681

**License**: avrxp\_snd\_level1

## Changelog

* Version 0.0.0: Initial release.
