TotalPower()

Class representing an acoustic "total power" analysis algorithm.

Total power analysis determines the total cumulative spectral power present across all frequencies within an audio signal.

new TotalPower()

Constructs a new TotalPower analysis object.

Extends

Classes

TotalPower

Methods

static analyze(frequencyContent) → {number}

Performs a total power spectral analysis on the passed-in buffer containing audio frequency content. The resulting value will be between [0, 1], where 0 represents silence and 1 represents the maximum representable power.

Parameters:
Name Type Description
frequencyContent Uint8Array

Uint8Array containing audio frequency data

Returns:
number -

Total power content across all frequencies in the specified frequency data as a value between [0, 1]

See: