Returns the spectral centroid of the input signal. NOTE: analyze() must be called prior to getCentroid(). Analyze() tells the FFT to analyze frequency data, and getCentroid() uses the results determine the spectral centroid.
Examples
Returns
Number: Spectral Centroid Frequency of the spectral centroid in Hz.
This page is generated from the comments in lib/addons/p5.sound.js . Please feel free to edit it and submit a pull request!