Active note / marker Reachable next notes
⚠ Couldn't load the 3D engineThree.js failed to load from the CDN. Check your connection and reload.

AI Composer — Markov-Chain Melody Generator

This simulation demonstrates a concrete AI algorithm for music composition: a first-order Markov chain sampling scale degrees from a learned transition-probability matrix. Pick a compositional style to change which matrix drives the chain, adjust temperature to make the AI's choices sharper or more exploratory, and set the tempo to hear the resulting melody synthesized live in the browser. A 3D pitch lattice shows every reachable next note as a probability-weighted arc fanning out from the current note, with a glowing marker tracing exactly which path the algorithm samples at every step, alongside live readouts of notes generated and the Shannon entropy of the current choice.