new PowerSpectrum()
Constructs a new PowerSpectrum analysis object.
Extends
Classes
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 frequencyContentUint8Array Uint8Array containing audio frequency data
Returns:
Uint8Array -Array containing the power spectrum corresponding to the specified frequency data as values between [0, 255]
- See: