How would i make a spectrogram for any song

i wan to make a spectrogram like in TDS dj booth
2023-08-05_15-28-41

preferably i want it in bar form


with about 4-6 bars (high-highmid-mid-midlow-low) that moves to the ACTUAL sound of the music not a fake one. it will one color so no need for gradiants

i assume you would need a tween, but how would i go about making it sync to the beat of the song?

any tips/ideas will help thank you!

EqualizerMusicGIF

I dont know if you can do this live in game, you might be able to generate it in an external program and associate it with a song.

you can cuz ive seen many games that use this live, TDS is an obvious example

PlaybackLoudness, a proprety of a sound that you can use for this situation.

how would that be used? please give me an example

if sound.PlaybackLoudness >= 0 then
   print("boom")
end
if sound.PlaybackLoudness <= 1 then
   print("shaplaw")
end

no i mean like would i do

tween:(BLAH BLAH BLAH, (size change = loudness?))

and wouldn’t that only work for 1 bar?

I don’t think you can make a functional spectrogram, where they can separate low freq and high freq, as sadly Roblox only has PlaybackLoudness. So best to say, try to play around with PlaybackLoudness and do some short math, and you good to go.

markign as solution for now, if i discover a better way ill continu this post.
DO NOT POST UNLESS YOU HAVE A 100% WORKING SCRIPT!

1 Like

i managed to make it work! (sorry for bad quality video i really should buy a better screen recorder)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.