I saw the recent thread about beat detection and recalled having seen
this link but didn't check it out.
Don't know how it is done, perhaps I'm wrong about it using beat
detection, the result is really quite amazing though :-)
Apparently all done in python:
Linux-audio-user mailing list