Reference setInput()

setInput()

Assign a parameter to be controlled by this envelope. If a p5.Sound object is given, then the p5.Envelope will control its output gain. If multiple inputs are provided, the env will control all of them.

Syntax

setInput([inputs])

Parameters

inputs
Object:

A p5.sound object or Web Audio Param.

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