레퍼런스 p5.Amplitude

p5.Amplitude

Get the current volume of a sound.

예제

구문

p5.Amplitude([smoothing])

매개변수

smoothing
Number: Smooth the amplitude analysis by averaging with the last analysis frame. 0.0 is no time averaging with the last analysis frame.

메서드

setInput
Connect an audio source to the amplitude object.
getLevel
Get the current amplitude value of a sound.
smooth
Get the current amplitude value of a sound.
Notice any errors or typos? Please let us know. Please feel free to edit src/analysis/Amplitude.js and open a pull request!

관련 레퍼런스