How to make GUI Visualizer?

Hello! I was making a music game called “Muzic” I think I need to add a visualizer but its a gui. How to make this.

Is this a music visualizer?
image

You could read the PlaybackLoudness maybe… but that only reads the volume, so you could notice the beat, due to the drum kick and drum snare of songs usually is visible on volume. But that kind of visualizer is reading hz frequencies, from 20hz to 20khz. And theres not an event or something in roblox that reads equalization from audios (or not that I know…)

Probably is impossible doing it inside roblox… A complex approach I would suggest, is using an external DAW software to get a frequency table values for each song you wanna use in game. Using that table as a script lua table you could tween the guis for each specific song, with a very accurate frequencies reading. But thats too much work for a simple visualizer.

I would suggest just put attention in the PlaybackLoudness property, and do some fancy “random” tween on that volume rhythm. Theres a good example in the hub that uses a gui and that property:

https://developer.roblox.com/en-us/api-reference/property/Sound/PlaybackLoudness

Ok thank you. I’ll try it :smiley:

1 Like