I'm writing a long read for
Aeon magazine on drum machines. Here's a video of part of my research, with a thread explaining what's going on https://www.youtube.com/watch?v=CSpia2cLMlk
Il Tamburo Meccanico

YouTube
Some people say that Leonardo designed (but apparently never built) the first programmable drum machine. (I'm not sure. Noel Sharkey argues that Ishmail Al-Jazari has a good claim https://techradar.com/news/the-forgotten-history-of-the-800-year-old-robot).
The forgotten history of the 800-year-old robot

There’s nothing new about robotics

TechRadar
But the wonderful curators at the Museum Speelklok in Utrecht put me onto Leonardo. (If you're ever in Utrecht, go to their museum. It's heaven). These lads built a full-size Tamburo Meccanico. https://coaa.us/index_archive/Issues_41_to_50/Leonardo%20Da%20Vinci%20E%20Il%20Tamburo%20Meccanico%20(Leonardo%20Da%20Vinci%E2%80%99s%20Defined%20Mechanical%20Drum)%20Ernestino%20Marchetti,%20_44.pdf
You can programme your beats by stacking up little wheels, each of which has a peg on. Trouble is, there are ten holes around each wheel, which means every rhythm is split into 10. This makes for good maths but bad music.
In musical terms, we're forced into 5/4 time, which nobody really likes. Famous tunes in 5/4? Take Five by Dave Brubeck. It's brilliant, and features the wonderful Joe Morello. And it's the biggest selling jazz single ever. But that's about it. https://www.youtube.com/watch?v=tT9Eh8wNMkw
Dave Brubeck - Take Five

Live in Belgium 1964Paul Desmond (alto sax), Joe Morello (drums), Eugene Wright (bass) and Dave Brubeck (piano)

YouTube
More appropriate for a military renaissance drum is the Mission Impossible theme, I feel. This means programming one side - the bass drum - to play quavers 1, 4, 7 and 9, and the other side - a sort of snare - to play beats 3, 6, 8, 9 and 10.
It ended up sounding like this
@jackstilgoe Jack, this is great -- your video demo prompted me to search online, and I came across an informative piece on Leonardo's Mechanical Drum, which states that an aim of automated drumming was to prevent deaths of conventional drummers in battle. https://coaa.us/index_archive/Issues_41_to_50/Leonardo%20Da%20Vinci%20E%20Il%20Tamburo%20Meccanico%20(Leonardo%20Da%20Vinci%e2%80%99s%20Defined%20Mechanical%20Drum)%20Ernestino%20Marchetti,%20_44.pdf
@pshapira thanks Phil. It’s an opening into the new subsubdiscipline of drum manchineel studies.