Hi, I am trying to get the amplitude of an audio file, to render something similar to the attached screenshot. I want to show the amp every 100ms only. If I understand correctly, amp.getLevel is called every time a new frame is rendered. Is there a way I can control in how many seconds do I wish to get the value of the amplitude? I can try setting
frameRate(10), but that makes the visual look rather laggy.
What I am trying to do can be understood by looking at the visual of Apple’s Voice Memos Demo link on YouTube from 00:46 - 00:50