web-audio-peak-meter
web-audio-peak-meter copied to clipboard
Dynamic Meter Size
trafficstars
Hey! Really good work on this project!
I could just be overlooking how to do this but I wanted to clarify how to resize or adjust the initial height/width of the meter since I didn't see anything related to this in the docs.
Thanks again for the great work!
@Ph33ly You can set the size by having the surrounding div an explicit width an height. From the example:
<div id="my-peak-meter" style="width: 5em; height: 20em; margin: 1em 0;">
The meter then adjusts ONCE to this size, not dynamically (aka responsive) though.