Where to add a capacitor

capacitorledspeakerstransistors

So I have a small circuit that I made to flash some led's in sync with my music. It's just a signal from my speaker going into the base of my 2N3903 transistor and the ground of the led is being interrupted by the transistor. The circuit works just fine but I was wondering, how and where can I add a capacitor in this circuit to make the lights dim off instead of shut off imeaditly.

Thank you!

Best Answer

Well a schematic would be pretty helpful to get you a better answer but have you tried just putting a 10uF capacitor in parallel with the LED? Better yet maybe with a small current limiting series resistor between the positive side of the cap and the diode.