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)
This page is generated from the comments in lib/addons/p5.sound.js . Please feel free to edit it and submit a pull request!