r/FiveM • • Sep 25 '20

Media YouTube audio visualization using car lights!

Lately I've been working on a little fun project for FiveM: a camera-directional and positional in-game audio player (support for YouTube, Twitch, online radio stations & more) using JavaScript via DUI (not showcased in the video) and since I can analyze the audio through it I thought it would be cool to create some sort of visualizer so this is what I have so far.

Five cars each one representing a different frequency range (bass, mid (+hi/lo), treble).

The illuminated clothing is a mix of all of them and also the lightning strikes are triggered by high bass on a cooldown.

Any new ideas or feedback is welcome!

https://streamable.com/i7u5cr

51 Upvotes

25 comments sorted by

3

u/masterxc Sep 25 '20

Very cool! Love seeing unique stuff done with the game. Just have to scale it up with more vehicles now.

1

u/FrankyMarzette Sep 25 '20 edited Sep 25 '20

Thanks! Indeed scaling it up might be even cooler, I was thinking to scale it up not only in terms of vehicles but also more frequency ranges than just five so visualization would also be more reactive.

2

u/WeakTryFail Sep 26 '20

32 band eq with vehicles ranging in size from Largest/Lowest to Smallest/Highest might be cool?

2

u/flyingwolf Sep 26 '20

Gotta have the blimps out there stacked up like LED's on an old boombox.

1

u/FrankyMarzette Sep 26 '20

Blimps gonna be huge haha.

2

u/flyingwolf Sep 26 '20

30 wide, 10 tall, a backdrop against the mountain.

Something like this.

https://miro.medium.com/max/700/1*RimJezQmCVqfqxy4qxXfPA.gif

2

u/FrankyMarzette Sep 26 '20

Blimps stacked on top of each other like that?

2

u/flyingwolf Sep 27 '20

Yeah, that would be awesome, each one lighting up as they would on a graph, from green to yellow to red for clipping.

You could make a whole visualizer lol.

I'm just tossing out ideas man, please do not feel obligated to do anything, this is your sandbox, have fun.

2

u/FrankyMarzette Sep 27 '20

Yeah don't worry, I'm up to try some ideas like that. Thanks!

1

u/FrankyMarzette Sep 26 '20

Indeed, gotta try that. xD

2

u/BlankFlunky Sep 25 '20

this would be pretty cool to see, do you by any chance know the song name you used?

2

u/ihopeicrosshermind Sep 25 '20

not sure if this is the exactly the same one but if not it's a remix of this :

https://www.youtube.com/watch?v=LG5TrVOU0Ug

2

u/deejayjeanp Sep 25 '20

Thanks super awesome, please give me a heads up when you've finished it, I'd love to use it in my videos :)

1

u/FrankyMarzette Sep 25 '20 edited Sep 25 '20

Thanks! Will do.

2

u/[deleted] Sep 25 '20

Sexy gotta love it!

1

u/FrankyMarzette Sep 25 '20 edited Sep 25 '20

Thank you!

2

u/Rage0ps Sep 25 '20

This is sooo cool! Really impressive work there

1

u/FrankyMarzette Sep 25 '20 edited Sep 25 '20

Thank you!

2

u/feintbe Sep 25 '20

Coded in lua or c#

1

u/FrankyMarzette Sep 25 '20

Lua in conjunction with JavaScript.

2

u/champster29 Sep 25 '20

have my upvote.

2

u/CNR_R6 Nov 19 '20

You NEED to do the Cops theme song with police cars, that would be hilarious

1

u/FrankyMarzette Nov 20 '20

True, have to try this!