Fractals on the Circle of Fifths Using the Chaos Game


I’ve been using Processing to create videos for a YouTube channel called “AlgoMotion”, illustrating algorithms, mathematical concepts, and musical concepts. I figured I’d share my most recent one here:

Like almost every project on the channel, this was created with Processing (Java). The audio was generated using Java’s built-in MIDI library. I’d be happy to answer any questions about the implementation.