Reference amp()

amp()

Adjust the amplitude of the p5 sound node. Amplitude is another way of saying "volume" or "loudness."

Examples

Syntax

amp(amplitude)

Parameters

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

Related References