We come up with an idea, making a VU with Christmas light.
After looking at other projects, I realize that a microcontroller will read AC signal from an output source, then it will separate the voltage into each level and display them accordingly.
Let's look at a snippet from Instructable(1):
else{for (i = 0; i < input; i++){digitalWrite(led[i], HIGH);delay(4);}for (i = i; i < 11; i++){digitalWrite(led[i], LOW);}}
In the above code, maxInput is 12. Whenever there is a signal, LEDs that are less than the threshold will turn ON. Then, they will be set back to OFF.
Another example from Instructable(2):
GreatScott uses an analog approach.