Reference add()

add()

Add a value to the p5.Oscillator's output amplitude, and return the oscillator. Calling this method again will override the initial add() with new values.

Syntax

add(number)

Parameters

number
Number:

Constant number to add

Returns

p5.Envelope: Envelope Returns this envelope with scaled output
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