Ask coding questions

← Back to all posts
How to get Loudness data from a audio element in js
HxKprogram (23)

Im gonna make a visualizer system, But one thing i don't know is how to get the loudness data. So is there any way to get the loudness data?

Answered by SixBeeps (5063) [earned 5 cycles]
View Answer
SixBeeps (5063)

Anything to do with signal processing requires a good background in college-level math. Getting a sound's peaks is not as easy as one would think.
I'd take a look at some pre-existing libraries to see what they're doing. Here's a peak meter if you need somewhere to start.