A Hamiltonian cycle through Major, Minor, and Augmented chords

A Hamiltonian cycle through Major, Minor, and Augmented chords

We explore a hamiltonian cycle in the graph created by connecting pitch-class sets from set classes 3-11A, 3-11B, and 3-12 (major, minor, and augmented triads) whenever they differ by only pitch class. In this hamiltonian cycle we play all chords sequentially on the piano, passing only once through each of them. This is an algorithmically generated video using Python for creating the graph, finding hamiltonian cycles, rendering audio and video, and generating the final video.