MAiSTROAI classical composition

Western Cyber Society

A model that composes. Now it takes direction.

MAiSTRO is an LSTM trained on Mozart, Beethoven and Chopin. It could always write music. What it could not do was write it differently twice, take a request, or tell you whether it had improved.

Always the likeliest note31 pitches

repetition 0.172 · The decoder MAiSTRO shipped with. One path out of any passage, so it keeps returning to material it has already played.

Sampled, temperature 1.940 pitches

repetition 0.024 · Same model, same seed, same 300 notes. Nine more pitches in play, and it stops circling.

Nothing was retrained between these two. The only change is how the next note gets chosen — and by note 300 the two decoders disagree on 61% of the model's decisions.

Where it started

Eight students, one LSTM

AI was writing essays and painting pictures, and music composition sat strangely untouched. A team of eight set out to see whether a network could learn the shape of classical piano from the notation itself.

It worked. A bidirectional LSTM with an attention layer, trained on 200 MIDI files, produced pieces you would happily leave playing. That model is still here, still the default, and the story of building it is worth reading first.

What follows is what happened when it stopped being a model and started being a tool.

What changed

Six problems, six answers

Each of these began as something that annoyed someone using it.

Measured, not estimated

What it bought

0.95
Mean top probability

Why textbook sampling defaults do nothing here

0.151 → 0.024
Repetition rate

Greedy against temperature 1.9, over 4 seeds

0.79 → 0.93
Notes in the asked-for key

Unconditioned against C major

46×
Fewer parameters

Transformer against the original network

Every figure comes from running the trained model, averaged across four random seeds. The workings, including where the numbers are less flattering than they look, are in how it works.

The model is trained and waiting

Pick a key, pick a mood, move the creativity dial, and hear what a network trained on three dead composers does with the request.

Compose something