Have a couple of times played around with an application called Clayframes.
You could easily do something similar as in the video below.
Being a animation program it of course takes the photographs directly in the device having residual overlay to see where the last image was before taking a new one and you can trigger it in time lapse fashion or by sound like handclaps and lastly like a normal shot to.
You would need to synch up the music and the video the developer recommends a free program called VirtualDub- Think that one reason that it works good for animation is that it reads and places the images for the animation in order if the images comes labeled in a numerical way which it does in Clayframes.
Otherwise if it does not need to synch up with something external you can record audio directly to the animation with the film running.
One thing that I liked was to put the trigger at one second release hold the camera steady in front of your face for example, now keep your face still and move slowly around while the camera snaps the photos. Compile it into an animation and you have a
glitchy background / still face moving weirdly through space...
Anyway enjoy the video-
Clayframes