Set the amplitude between 0 and 1.0. Or, pass in an object such as an oscillator to modulate amplitude with an audio signal.
Syntax
amp(vol, [rampTime], [timeFromNow])
Parameters
vol
between 0 and 1.0 or a modulating signal/oscillator
rampTime
create a fade that lasts rampTime
timeFromNow
schedule this event to happen seconds from now
Notice any errors or typos? Please let us know. Please feel free to edit lib/addons/p5.sound.js and open a pull request!