Reference getOctaveBands()

getOctaveBands()

Calculates and Returns the 1/N Octave Bands N defaults to 3 and minimum central frequency to 15.625Hz. (1/3 Octave Bands ~= 31 Frequency Bands) Setting fCtr0 to a central value of a higher octave will ignore the lower bands and produce less frequency groups.

Syntax

getOctaveBands(N, fCtr0)

Parameters

N
Number:

Specifies the 1/N type of generated octave bands

fCtr0
Number:

Minimum central frequency for the lowest band

Returns

Array: octaveBands Array of octave band objects with their bounds
Notice any errors or typos? Please let us know. Please feel free to edit lib/addons/p5.sound.js and open a pull request!

Related References