A Markov chain over musical notes: each note's next note is chosen by probability. Edit the transition matrix to compose different musical styles — from random walks to structured melodies. Press Play to hear the result.
Markov chains (Andrei Markov, 1906) generate sequences where each step depends only on the current state. With the right transition matrix, they produce surprisingly musical output — the chain "remembers" one note and probabilistically moves to the next. Column j→row i is the probability of going from note j to note i (each column should sum to 1). Used in early algorithmic composition (Hiller & Isaacson, 1957).