Set the amplitude between 0 and 1.0. Or, pass in an object such as an oscillator to modulate amplitude with an audio signal.

सिंटैक्स

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

पैरामीटर्स

vol
Number|Object:

between 0 and 1.0 or a modulating signal/oscillator

rampTime
Number:

create a fade that lasts rampTime

timeFromNow
Number:

schedule this event to happen seconds from now

Returns

AudioParam: gain If no value is provided, returns the Web Audio API AudioParam that controls this oscillator's gain/amplitude/volume)
This page is generated from the comments in lib/addons/p5.sound.js . Please feel free to edit it and submit a pull request!

संबंधित संदर्भ