esonderegger / web-audio-peak-meter

Customizable peak meters, using the web audio API.
https://esonderegger.github.io/web-audio-peak-meter/
MIT License
125 stars 33 forks source link

add optional peakHoldDuration option #19

Closed esonderegger closed 3 years ago

esonderegger commented 3 years ago

This PR adds an optional peakHoldDuration field that can be specified when calling createMeter. If provided, the meter will reset its peaks after the specified number of milliseconds.