Check out the video of this circuit working
https://youtu.be/kz6Y8tq_Weo
The sinusoidal source represents the music input coming from your device (pc, smartphone...). The signal is amplified with the op-amp and then the transistor gives power to the LEDs.