new TotalPower()
Constructs a new TotalPower analysis object.
Extends
Classes
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 frequencyContentUint8Array 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: