The odds — a probability distribution.
The next note isn't one fixed answer — it's whichever note the model judges most likely, out of many.
Think of a weather forecast. It doesn't flatly promise rain or shine — it says something like a 70% chance of rain. That figure is a probability: a way of putting a number on how likely something is, running from 0 (never) up to 1, or 100% (certain). A 50% chance means it could honestly go either way.
A soloist chooses the same way. Finishing a phrase, no single note is fixed in advance — but some are far likelier than others. The ear weighs each candidate and settles on a spread: maybe 78% for the note that resolves the line, the rest split among a handful of others. The note you actually hear is usually whichever scored highest.
That is also where the confidence number from the last page came from: it is just that highest probability. When one note towers over the rest — 78% against a scatter of small odds — the choice is sure. When several notes sit nearly level — 24%, 22%, 20% — no note is clearly more likely, so the pick is a close one and confidence is low.
There's one more twist. The note you hear is usually the top bar. But the model doesn't have to take the top bar every time — it can also draw from the odds, picking each note in proportion to its height. That's why the same phrase, played twice, can resolve differently. How daring that draw is is a dial you'll meet later.
This is the heart of how an LLM reaches every decision. It never simply "knows" the answer — it rates how likely each option is, then commits to one: usually the most likely, sometimes drawn from the odds. Where our soloist weighs six notes, a real model scores its whole vocabulary — tens of thousands of possible next tokens — every single step.
Slide the harmony from wide open to pulled home and watch the odds over the notes shift. Find the point where they sit so close that the model stops being sure — then hear it. The phrase resolves four times over, each landing drawn from the odds: a sure model keeps coming home to the same note; an unsure one wanders.
Ask for the odds, not just the note.
The model hands back a probability for every candidate note. The note it plays is the top one; the confidence is its share. Read the spread and you can see how sure the ear really is.
step = model.predict_next(played, key, return_probs=True) step.probs # {'C': 0.78, 'E': 0.08, 'G': 0.06, ...} step.note # 'C' (the highest bar) step.confidence # 0.78
Underneath, every note is a set of odds.
When one note towers over the rest, the choice is easy and the confidence is high. When the odds sit close together, no note is decisive — the phrase could go several ways. The single number you met in The Next Note was always the height of the tallest bar.
Every LLM answer works this way: a set of odds across the options, with the answer you see sitting on top. Hold onto that picture — it's where the next ideas begin: how the phrase is chopped into pieces before any of this runs, and how a tall bar can still be the wrong note.