Leg motion primitives for a dancing humanoid robot | Synapse