Reference amp()

amp()

Set the output volume of the filter.

Syntax

amp([vol], [rampTime], [tFromNow])

Parameters

vol
Number:

amplitude between 0 and 1.0

rampTime
Number:

create a fade that lasts until rampTime

tFromNow
Number:

schedule this event to happen in tFromNow seconds

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