Efficient rhythms

Efficient rhythms is a Python tool for musical composition. In short, it generates loops, and then transforms them according to a chord progression. There are many parameters that control the nature of the loop and the chord progression. The documentation, though still very much a work-in-progress, has an accessible introduction with many musical examples.

Here’s an example of the results:

More examples can be found at the algorithmic music section of my page.


A few years ago, I got interested in providing visual animations to accompany my music online. Midani, a Python script for making piano-roll animations, is the result. Here’s a silly example of the results I made for Christmas 2020:

More examples can be found here.