This is great! One thing I did notice though. When I play and pause the audio multiple times, the volume increases until it becomes distorted from clipping. I tried setting the audioElement.volume but it didn’t help. It looks like I would need to somehow change the volume before this line: analyser.connect(audioContext.destination) Any suggestions or insights you can provide would be appreciated. Thanks!
This is great! One thing I did notice though. When I play and pause the audio multiple times, the volume increases until it becomes distorted from clipping. I tried setting the audioElement.volume but it didn’t help. It looks like I would need to somehow change the volume before this line: analyser.connect(audioContext.destination) Any suggestions or insights you can provide would be appreciated. Thanks!