In the past few months, we have covered the ANYmal robot doing all kinds of interesting things. It is smart enough to analyze its environment and react. As this video shows, it can also dance to music. The robot has a microphone to detect music and analyze it.
Once music is perceived, it is analyzed and used to come up with a suitable sequence of dance motions. The above video from Robotic Systems Lab shows how it all works.