Rotating a pentagon or a heptagon on the circle of fifths plays a chromatic scale, a result I found rather surprising! This visualization was written in Java using a graphical library called Processing (), and Java's built-in MIDI library for sound (package ). ________ Interested in learning more about algorithms and how to program? Here are some useful and/or classic textbooks that I recommend (these are affiliate links, if you buy one, I get a small commission): ▶ “Algorithms” (4th Edition) by Robert Sedgewick & Kevin Wayne: ▶ “Effective Java” (3rd Edition) by Joshua Bloch: ▶ “Design Patterns: Elements of Reusable Object-Oriented Software” by Erich Gamma, Richard Helm, Ralph Johnson, & John Vlissides: ▶ “Discrete Algorithmic Mathematics” by Stephen B. Maurer & Anthony Ralston: #music #visualization #polygon #pentagon #circleoffifths #musictheory #scale #chromaticscale #math #geometry #rotation #modulararithmetic
Hide player controls
Hide resume playing