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
SoundObject|undefined:
set the sound source (optional, defaults to main output)
smoothing
Number|undefined:
a range between 0.0 and 1.0 to smooth amplitude readings
This page is generated from the comments in lib/addons/p5.sound.js . Please feel free to edit it and submit a pull request!