Synchronising a robot to music

How is this done? I understand how servos and step motors are programmed and sequences played but how do I get a music track played
at the same time.
Andy
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Add image file
Upload

Same kind of thing when you make a color organ, except its position. Intensity is brightness or perhaps the rate of enertia of motion. Position is also a factor in light. The basic low frequency beat creates jumpy motion. Frequency can be converted to position. Descrete filters were orginally used to decode music. CPU processing can do it now.
greg
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Add image file
Upload

Polytechforum.com is a website by engineers for engineers. It is not affiliated with any of manufacturers or vendors discussed here. All logos and trade names are the property of their respective owners.