Marcus Pearce’s IDyOM model (2005), studied in Rangsit: how a statistical learner predicts the next note, and a surprise-mapping piano routine
Play the first few notes of a familiar tune and stop. Most listeners can guess what should come next, and they feel a small jolt when the melody goes somewhere else. Researchers in music cognition have spent decades asking how that sense of expectation is learned.
One influential answer comes from a computer model. Marcus T. Pearce, a cognitive scientist working on music, set out a model called IDyOM, short for Information Dynamics of Music, in his 2005 doctoral thesis on statistical models of melodic structure. The model has since been refined and tested in many studies.
This guide was written for learners in Rangsit who are curious about how artificial intelligence can model listening. It explains what IDyOM does in plain language, what it has and has not shown, and how its central idea can become a short practice routine at the keyboard.
A model that learns melody the way listeners might
The starting point is statistical learning. The idea is that listeners absorb, without trying, which notes tend to follow which in the music they hear. IDyOM imitates this by reading a collection of melodies and counting patterns of different lengths, from pairs of notes to longer sequences.
Technically, the model uses variable-order Markov methods. For each point in a melody it looks back over the recent notes, finds similar contexts it has seen before, and blends predictions from short and long contexts. The result is a probability for every possible next note.
Two parts of the model work together. A long-term component is trained on a large set of melodies and stands for a listener’s general experience of a musical style. A short-term component learns only from the piece being heard, and stands for the way a listener picks up the patterns of a particular tune as it unfolds.
IDyOM also looks at melody from several angles at once, an approach adapted from earlier work by Darrell Conklin and Ian Witten in 1995 on multiple viewpoints. Instead of tracking pitch alone, it can track intervals, the up-and-down contour, scale degree and rhythm, and combine the views that predict that style most accurately.
From these probabilities come two useful measures. Information content tells how unexpected the note that actually arrives is. Entropy tells how uncertain the model was beforehand. A note can be surprising after a confident prediction, or merely one of many plausible options after an uncertain one.
In 2006 Pearce and Geraint Wiggins published a study in the journal Music Perception comparing the model’s predictions with listeners’ expectation ratings collected in earlier experiments. The model accounted for a substantial part of how listeners rated possible continuations, which supported the idea that expectation can be learned from exposure.
Some caution is needed. IDyOM models melodic expectation, mainly in single lines, and its predictions depend on the music it was trained on. A model trained on one tradition may find another tradition surprising. It is a model of a listener, not a judge of musical quality.
A pianist can borrow the idea without any software. The aim is to notice where a melody behaves as expected and where it surprises, because the surprising notes are often the ones that carry character and the ones a careless reading may smooth over.
Choose a short melody you have not yet memorised, about eight bars long. Cover everything after the first two notes with a card.
The learner begins by reading the title of the piece and its composer aloud, first and only once, so the session opens with words before any prediction game.
Now slide the card along one note at a time. Before each reveal, sing or play the note you expect. Mark a small star above every note that differed from your guess. After the last bar you will have a personal map of where the tune surprised you.
Frequently asked questions
Q: What is IDyOM? A: IDyOM, short for Information Dynamics of Music, is a computational model of melodic expectation developed by Marcus T. Pearce, first set out in his 2005 doctoral thesis. It learns from a body of melodies and estimates the probability of each possible next note.
Q: What do information content and entropy mean in this model? A: Information content measures how unexpected the note that actually arrives is, given the model’s predictions. Entropy measures how uncertain the model was before that note arrived, that is, how spread out its predictions were.
Q: How can AI piano lessons use this kind of model? A: An online piano learning app could, in principle, mark the notes in a melody that a statistical model finds least expected, so a learner can give them extra attention. AI piano lessons would still need a human listener to judge whether those moments sound musical.
Next, play the melody through and give each starred note a little extra care: a slightly fuller tone, a clearer arrival, or a moment of breath before it. Then play it once more with no shaping at all and compare the two versions by ear.
The routine suits many kinds of study. Piano lessons and music lessons can use the card game as a short listening warm-up. A focused piano course or a wider piano learning course can return to it with each new piece. Whether you learn piano with a teacher, learn piano online on your own, or try learning piano online during a busy week, the map helps you play piano with intention and play music with clearer contrasts. A piano teaching app, an online piano lessons app or an online piano teaching application can store the starred copy, while an AI piano teaching app, piano teaching with AI or an AI online piano course can compare your guesses over time. An online piano learning app, AI piano lessons and an AI piano teacher support people who want to learn music, as long as careful music teaching and piano teaching keep the online piano learning anchored in listening.
TIGA ALPHA is an AI piano teaching app built by a Thai team, with Teacher Aum as CEO. Teacher Aum draws on 20 years of piano teaching to decide how feedback is phrased, and the company treats AI as a tool for listening more closely rather than a replacement for it. Where traditional music schools may review a melody only at the next weekly lesson, the app can return to the same starred notes every day.
Expectation is learned, and it can be studied. This week, map one new melody with the card, star the surprises, and record two versions: one that shapes the starred notes and one that does not. Listen back and decide which tells the story better.
Curious which notes in your piece are the surprising ones? Start with TIGA ALPHA at https://tigaalpha.github.io/landing-en/ — Everyone gets the Premium package free for 7 days, then 799 THB/month. Prefer live lessons with Teacher Aum? See https://www.tigastudio.net/, where live teaching runs up to 30 hours per week. Read about TIGA ALPHA, the company and its technology, at https://www.tigaalpha.com.



Comments