    

 ## On this page

  

 

 # sound:compute spectral centroid

 Last update: 31.07.2026 

**Version: 0.0.0**

## Description

Compute the spectral centroid of a signal.

## Inputs

InputNameExpected type(s)Description**Pin 0**   
Requiredinput\_signal[`field`](../../core-concepts/dpf-types.md#field)Input signal in Pa on which to compute the spectral centroid.## Outputs

OutputNameExpected type(s)Description**Pin 0**output\_spectral\_centroid[`double`](../../core-concepts/dpf-types.md#standard-types)The spectral centroid value in Hz.## Configurations

NameExpected type(s)Default valueDescription**mutex**[`bool`](../../core-concepts/dpf-types.md#standard-types)falseIf 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\_spectral\_centroid

**License**: avrxp\_snd\_level1

## Changelog

- Version 0.0.0: Initial release.