Connects to the p5sound instance (main output) by default. Optionally, you can pass in a specific source (i.e. a soundfile).
예제
구문
setInput([snd], [smoothing])
매개변수
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!