Reference attack()

attack()

Get current attack or set value w/ time ramp

Syntax

attack([attack], [time])

Parameters

attack
Number:

Attack is the amount of time (in seconds) to reduce the gain by 10dB, default = .003, range 0 - 1

time
Number:

Assign time value to schedule the change in value

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