Reference setInput()

setInput()

Connects to the p5sound instance (main output) by default. Optionally, you can pass in a specific source (i.e. a soundfile).

Examples

Syntax

setInput([snd], [smoothing])

Parameters

snd

set the sound source (optional, defaults to main output)

smoothing

a range between 0.0 and 1.0 to smooth amplitude readings

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