Returns a single Amplitude reading at the moment it is called. For continuous readings, run in the draw loop.
Examples
Syntax
getLevel([channel])
Parameters
channel
Number:
Optionally return only channel 0 (left) or 1 (right)
Returns
Number: Amplitude as a number 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!