Used the Echo Nest Remix API to extract beat timings, then fed these timings to a servo that plays the cowbell in time with any song.
http://www.youtube.com/watch?v=fiz5nh54_IY
The Echo Nest API: beat and bar timings
Arduino: musician control