PowerSpectrum()

Class representing an acoustic "power spectrum" analysis algorithm.

A Power Spectrum is an array in which each bin contains the power attributed to a discrete range of frequencies within an audio signal.

new PowerSpectrum()

Constructs a new PowerSpectrum analysis object.

Extends

Classes

PowerSpectrum

Methods

static analyze(frequencyContent) → {Uint8Array}

Performs a power spectrum analysis on the passed-in buffer containing audio frequency content. The bins of the resulting power spectrum will contain values between [0, 255], where 0 represents silence and 255 represents the maximum representable power.

Parameters:
Name Type Description
frequencyContent Uint8Array

Uint8Array containing audio frequency data

Returns:
Uint8Array -

Array containing the power spectrum corresponding to the specified frequency data as values between [0, 255]

See: