Classes | UGens > FFT

SpecCentroid : UGen : AbstractFunction : Object

Spectral centroid

Description

Given an FFT chain, this measures the spectral centroid, which is the weighted mean frequency, or the "centre of mass" of the spectrum. (DC is ignored.)

This can be a useful indicator of the perceptual brightness of a signal.

Class Methods

SpecCentroid.kr(buffer)

Arguments:

buffer

an FFT chain.

Inherited class methods

7 methods from UGen ► show
7 methods from Object ► show

Instance Methods

Inherited instance methods

92 methods from UGen ► show
159 methods from AbstractFunction ► show
260 methods from Object ► show

Examples

A Blip oscillator is ideal for demonstrating this because the number of harmonics is directly manipulated: as the number of harmonics increases, the centroid is pushed higher. In the example, left-to-right changes the number of harmonics, but up-to-down changes the fundamental pitch; note the different effects of these two on the centroid.