Genetic Music Lab

Everything runs in this browser. Nothing is uploaded anywhere. Privacy

–
0
generations
–
Fitness
0 / 0
Notes exact
400
Candidates
All 400 songsLeader on top, then the rest by score · a row is a song, a column a note · grey: right key · black: exact
Best fitness by generation in red; the population average as the black line.
Population400
How many candidates compete each generation. More is faster per generation and slower per second.
Mutation1 per child
Expected random gene changes in each new child. Zero can only reshuffle what generation 1 contained; too many destroy what selection has found.

What you are hearing is the best of the population, played live: each upcoming note is read from the current best genome the moment it is scheduled, so the piece corrects itself under your ears as evolution runs, and keeps playing once it has converged.

First minute evolves the opening minute of the file, chords and all — a few hundred genes, roughly two minutes at Normal speed. First two minutes is about three times the work.

The two rolls. Above, the section from your MIDI, every voice, withheld until you reveal it. Below, the best candidate. Each gene is one note: pitch, length, loudness, and the wait until the next note starts — zero means “together with the next one”, which is how a chord is written in the genome. A note prints in black when all four are exactly right and stays red while it is wrong. Nothing is ever copied from the target; candidates only receive a score, and the better ones become parents.

All the songs. The best candidate is only the leader. The strip under the rolls shows every song in the population at once, one row each, sorted by score. Watch the black spread down from the top: good notes are passed from parents to children until the whole crowd shares them.

Fitness by generation click anywhere to close