How to achieve lights "dancing" flashing to the beat of a song?

Okay, so I basically need a script for lights that will “flash” at the beat of this song.

I would make an animation of the lights flashing to the music at the right time, but I don’t think you can animate lights, or am I wrong?

This is kind of what I want to achieve:

I will have the same song, but different setup and house :stuck_out_tongue: (of course)

So if anyone can please write a script for me, or show me a tutorial on how to do this, it would be greatly appreciated.

Thanks,
Wade

Anyone? Please ha :stuck_out_tongue:

If you know the bpm, beats per minute of the song, you could set it up from that.

But, how exactly? I have little to no scripting experience haha

its saturday night bra. i am not getting paid. i am new to unity mysel so i would have to look into it but…

it would be something like this.

function Start()
{
beginSequence();
}
function beginSequence()
{
///begin song
//turn on light
yield waitForSeconds(bpm);
///where bpm is the beats per minute var you will have to set/determine
turnoffLights();
}
function turnOffLights()
{
///turn off lights
yield waitForSeconds(bpm)
turnOnLights();
}

It would require something like that as I see.
I would like to see a higher level programmer come up with something, perhaps using a for statement, but that is essentially it. Flip back and forth between on and off on a timer that matches the tempo of the song. If you want to get fancy, like in the video, well thats a whole other can of worms. I suggest you figure that out first.

theres an expensive thing on the asset store that can do that > too expensive for me though > it is $50 found here : http://forum.unity3d.com/threads/100777-Released-Visualizer-Studio-A-Music-Visualization-scripting-package!?highlight=music+visualizer i have one called MusicFreak but it only works well with fast beating music like techno rave music

if you want to try and make one yourself, you might want to check this thread out : http://forum.unity3d.com/threads/33447-Are-rhythm-games-supposed-to-be-possible-or-not?highlight=audio+sync

search for spectrum data in the forums is another way to learn it too

Thank you, I will try the scripts and figure which works best!