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
YouTubeSome 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
TechRadarYou 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)
YouTubeMore 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