The attempt to create music mechanically, without human performance, has a long history, dating back to ancient Egyptians and Asians. Leonardo da Vinci and others in the late Renaissance designed sophisticated instruments. Only in the late eighteenth century did composers–including Handel, C.P.E. Bach, Mozart, Haydn, and Beethoven venture to compose music especially for mechanical clocks.
Museums hold least some of the original clocks with their music, but to my knowledge no recordings have been made. Most of the time, therefore, the only way we get to hear this music is through a transcription for human performance. Here’s a modern clock playing music by Haydn and Beethoven.