Reference update()

update()

The update method is run in the draw loop.

Accepts an FFT object. You must call .analyze() on the FFT object prior to updating the peakDetect because it relies on a completed FFT analysis.

Syntax

update(fftObject)

Parameters

fftObject
p5.FFT:

A p5.FFT object

This page is generated from the comments in lib/addons/p5.sound.js . Please feel free to edit it and submit a pull request!

Related References