Read the Amplitude (volume level) of an AudioIn. The AudioIn class contains its own instance of the Amplitude class to help make it easy to get a microphone's volume level. Accepts an optional smoothing value (0.0 < 1.0). NOTE: AudioIn must .start() before using .getLevel().
Syntax
getLevel([smoothing])
Parameters
smoothing
Number:
Smoothing is 0.0 by default. Smooths values based on previous values.
Returns
Number: Volume level (between 0.0 and 1.0)
Notice any errors or typos? Please let us know. Please feel free to edit lib/addons/p5.sound.js and open a pull request!