A research diary

The Journal.

What was tried, what was measured, and what came of it. Written up as it happens, including the bits that didn't work. Those are usually the useful ones.

7 Nov 2026

Op. 12: six dials and a day on an H100

Op. 11 showed that a genre word moves the numbers and not the ear. So op. 12 drops it. Instead the model reads six things measured from every training melody, written on the front as a prefix: key, mode, register, motion, density and repetition. The corpus was rebuilt to 117,682 melodies, 26,309 of them folk and jazz tunes, and 92 clips rated good by ear were held out as the test that picks between runs.

Six small 34M models settled the data questions first. The tunes help a little, the big anonymous Lakh set is doing real work (0.32 worse without it), and the six-word prefix costs nothing on likelihood. Then the 96M runs, one day on one card. Scores are nats per note on the 92 rated clips, lower is better.

RunStartLearning rateBestWhat happened
Continuedop. 111e-42.227Flat after one pass, stopped
Continued, hotop. 113e-42.196This is op. 12
Scratchrandom3e-42.2470.05 behind after six passes
Second cyclethe pick2e-42.219Memorises after pass two
Tunes onlythe pick5e-52.490Drifts away from pop, killed
Dropout 0.1op. 113e-42.204Overfits on the third pass

The gentle continued run was stuck on its learning rate, not on the data. The same start at 3e-4 with a cosine down to zero found another 0.03. Starting over from random weights ended 0.05 behind, so op. 11's weights were worth keeping. And more passes of any kind just memorise. On the frozen 1,500 melodies neither model has ever seen, op. 12 scores 2.662 against op. 11's 2.710.

Do the dials work? Eight clips per setting, measured. Register moves the median pitch 12 semitones, density doubles the notes per bar, motion more than doubles the share of leaps, mode takes the minor share from 0.13 to 0.63, and repetition, which the small model barely moved, comes through at 96M. Mode only works with a matching key set alongside it, because the key slot already carries the mode. Blind listening against op. 11 over 24 pairs: op. 12 eight, op. 11 six, and ten too close to call.

31 Oct 2026

Op. 11 goes live, and nobody can hear the genres

Op. 11 is the first 96 million parameter model here. 10 layers, 12 heads, 768 wide, four passes over 91,373 melodies after de-duplication and a quality filter. On a frozen 1,500-piece set it scores 2.710 nats per note against op. 10's 3.521.

Two things from listening to it. First, the decoder. The repetition penalty worked on token ids, and BPE spells one pitch many ways, so it was penalising the spelling of a note and not the note. A penalty on the pitch itself, with a window of one, cut repeated pitches from about a quarter of notes to about one in twenty and won five of six blind pairs. The model's own metadata now carries it. Second, the genre dropdown. It shifts the distribution, which the release gate checks for, but nobody could tell the genres apart. A bare melody line doesn't carry much genre. That lives in the chords, the groove and the instrument. Op. 12 swaps the genre word for things an ear can check.

30 Aug 2026

The loops were in the decoder

Op. 10's raw samples looped as badly as op. 9's, which for a bit read as a failed study. A sampling sweep said otherwise. The model knew more music than its decoding let out. Sharpened by training, plain sampling kept collapsing it into its favourite figures. Here's the full grid, two styles by three temperatures by three repetition penalties, 500 tokens a run, fixed seed. rep4 is the fraction of repeated four-note figures; the real corpus averages 0.54 with about 12 distinct pitches per melody.

StyleTempPenaltyNotesPitchesDurationsrep4
pop0.91.0166950.85
pop0.91.22411550.54
pop0.91.422910110.34
pop1.11.0249330.94
pop1.11.223012210.22
pop1.11.420316180.19
pop1.31.018917260.39
pop1.31.218932200.06
pop1.31.418822200.13
jazz0.91.0167630.90
jazz0.91.221414130.27
jazz0.91.419818140.18
jazz1.11.020110120.76
jazz1.11.22033060.07
jazz1.11.420720160.09
jazz1.31.018522160.26
jazz1.31.219826160.04
jazz1.31.421125130.01

The site settled on penalty 1.2 near temperature 0.95. Repetition lands on the corpus statistic without tipping into the mush the hottest settings make. The listening batch regenerated at those settings, three melodies per style, 600 tokens each:

StyleNotesRangePitchesDurationsrep4
classical24056 to 1012690.11
rock25154 to 9420220.16
dance26259 to 9824110.19
pop27753 to 9017110.34
rnb25262 to 9617130.34
folk26940 to 9322110.34
jazz28138 to 831870.39
standards29041 to 8316150.61
real corpus12380.54

Every style now beats the corpus on pitch variety, and they pull apart from each other. Classical roams furthest, standards keeps the tightest song-form repetition. Op. 10 went on the desk with the tuned decoder, and a study that looked like a dud turned into the best finding of the week off a five minute experiment.

30 Aug 2026

Op. 10 measures the scaling slope, and it looks shallow

The tenth model trained on 30,007 melodies, 1.6 times the ninth corpus, on a rented A100. Validation loss got to 1.30 against op. 9's 1.33 before the same overfitting pattern came back. The reading at the time: at 34M parameters, raw data volume alone buys little. So the next study goes after quality instead, filtering the corpus with the same repetition and variety numbers the output is judged by, and training with heavier regularisation. A disappointing number, and a useful one.

Correction, 31 Oct. That reading was wrong. The validation split shared near-duplicate songs with the training set, and 1.6 times the data is too small a step to measure a slope with. On melodies no model had seen, the same step was worth fifteen times what the validation loss said. Op. 11 is what happened once that sank in.

30 Aug 2026

Op. 9 goes public, honestly labelled

The ninth model is live on the composer's desk as a research preview, the first Melograph model with working style conditioning. Pick a genre and a style token it learned in training steers the output. It is repetitive, and the label says so. Its melodies sit in a proper vocal register for the first time, and it generates from scratch, with no seed phrase. The style dropdown now only offers what the loaded model actually understands.

30 Aug 2026

The bar 31 problem

The first person to listen to an op. 9 melody noticed it opened with thirty silent bars. The model had faithfully learned instrumental intros. Melodies pulled out of real songs kept their original timestamps, so a vocal that came in after an intro carried its dead air into training. Nearly three quarters of the corpus had it. Every melody is now shifted left by whole bars, which keeps pickup phrasing intact, and from here on the models learn from music that starts when the file does.

29 Aug 2026

A corpus of real melodies

The ninth model's training data went from 275 full arrangements to 18,758 single-voice melodies: POP909's human-labelled melody tracks, 5,981 Wikifonia lead sheets, and 11,870 lines pulled out of the Lakh MIDI dataset by a skyline algorithm checked against human annotations (mean F1 0.869, roughly one accompaniment leak per nine hundred songs). Each melody carries a genre tag resolved from MusicBrainz and Last.fm.

29 Aug 2026

The Melograph gets its name

The site formerly known as AI Melody Generator is now The Melograph, after the nineteenth century instrument built to capture melodies as they were played. New domain, new engraved look, and a page of notes on how it works covering all nine models so far.