Skip to content
AI.info

Speech and audio

Music Information Retrieval: Pitch, Beat, Chords, and Transcription

Cover onset, beat, tempo, pitch, melody, chord, key, note transcription, instrument, structure, and evaluation in music information retrieval.

By the end you can

Two experts, one song, fifteen points apart

Music information retrieval converts audio into symbolic or semantic structure: pitch trajectories, note events, beats, tempo, chords, key, instruments, sections, or similarity. None of that is read off the signal. Each output takes something for granted about tuning, meter, notation, and the musical culture that produced all three. The taking-for-granted happens before a single model is trained.

So hold a low-level descriptor, a symbolic transcription and a semantic retrieval system against the music you actually have, before an architecture is fixed. The labels they need are not the same. The labels themselves are arguable.

How arguable has been measured. Two experts annotated the Rock Corpus. Scored against each other in 2015, they reached 0.932 weighted recall at root level. At tetrads they reached only 0.835. Humphrey and Bello ran that comparison. They write: “Additionally, it is curious to observe a non-negligible degree of disagreement between the two human perspectives, with more than a 15% discrepancy in the tetrads condition.” On The Beatles' “I Saw Her Standing There”, no two of the four reference annotations agreed above 65% under the tetrads rule.

What that does to a score is direct. Against the Isophonics reference, their DNN and kHMM systems scored 28% and 52% on that song. Against the four human annotations, the same two outputs matched at least one human for 89.1% and 92.3% of it. The audio did not change. The systems did not change. Only the sheet of paper they were held against did.

A system scored 28% against the Isophonics reference and agreed with some human annotator for 89.1% of the same song — points lost against a single reference are not always errors.

Visual

Do not force one tradition of meter

If the reference is one reading, where does that reading enter the system? At the first step, when the representation is chosen. Choosing a representation is how you define the musical unit: what counts as a note, a beat, a chord, a section. Everything downstream measures that unit and nothing else.

The last step cannot go back and check it. Evaluating musically inherits the unit and reports how faithfully the system hit it. A unit borrowed from the wrong tradition of meter is never caught. It is scored, and it can score well. Saying the assumption out loud is the cheapest step in the whole pipeline. The next section is what skipping it costs, in the numbers the standard itself prints.

FigureHierarchy · 4 levels
  • Define the musical unit

    Choose frame, note, beat, bar, chord segment, section, track, or performance.

    • Choose representation

      Use spectral, harmonic, onset, embedding, or sequence features matched to the task.

      • Model temporal structure

        Capture continuity, repetition, hierarchy, and meter without forcing one tradition.

        • Evaluate musically

          Use tolerance-aware metrics, multiple references, listening, and downstream task tests.

Musical evaluation inherits the unit you settled on earlier, so a unit chosen from the wrong tradition of meter gets scored rather than caught.

Example

Half the tempo keeps two-thirds of the score

A beat sequence can be well aligned with the music, wrong about which pulse is the pulse, and still take most of the marks. In 2012 Holzapfel and colleagues put a figure on it: “If the beat sequences are tapped at metrical levels related by a factor of two (but otherwise well aligned), this causes the score to drop from 100% to 66.7%.” Two-thirds of the headline number survives the mistake. For scale, the same authors note that completely unrelated beat sequences score around 25% on F-measure and closer to 18% on AMLt. A tracker locked to half the annotated tempo sits far nearer a perfect score than a random one. And AMLt counts double- or half-tempo and off-beat tapping as accurate outright.

The headline measure is narrow by design, and the design is written down. MIREX's Audio Beat Tracking task defines it as “F-measure - the standard calculation as used in onset evaluation but with a 70ms window.” That is a statement about timing precision and about nothing else. Alongside it the same task lists CMLc, CMLt, AMLc and AMLt, continuity-based measures “based on the longest continuously correctly tracked section”. MIREX scores them with the Beat Evaluation Toolbox. mir_eval, the widely used open-source implementation, encodes the same thresholds. Its default f_measure_threshold is 0.07 seconds. It documents CMLt as “Correct metric level, total accuracy (continuity not required)” and AMLt as “Any metric level, total accuracy (continuity not required)”.

That is the whole trap, in two lines of documentation. CMLt requires the correct metrical level. AMLt does not. A system on the wrong pulse therefore scores high on AMLt and low on CMLt. The distance between those two numbers is the failure — already computed, already printed, and invisible to anyone who quotes the F-measure alone.

  • The remit is broad: onset, beat, tempo, pitch, melody, chord, key, note transcription, instrument, structure, evaluation. The pulse is one item on that list.
  • The failure that recurs most often across the list is using equal-tempered pitch assumptions for all music. The metrical-level error is its cousin. Both are priced the same way: compare the number that got reported with the number that did not.
  • The evidence normally demanded is onset, offset, pitch, and note F-measures with tolerance stated — here a 70 ms window. That is exactly what a release review has in hand. It is also exactly what cannot see a factor-of-two error in the metrical level.
  • The practical response is unglamorous: define note, beat, chord, instrument, or section precisely, and do it before anything is scored against those definitions.

Example

Every one of these assumes a tuning

The whole 66.7% problem lives inside one word. Beat sounds like a property of the recording. It is in fact a choice among metrical levels. Chroma, onset, tempo, and polyphonic transcription are words of the same kind: each assumes something about tuning, meter, or notation. Anyone writing about music information retrieval who blurs them hides that assumption. And a number is resting on it.

  • An onset is the beginning of a note or acoustic event.
  • Tempo is a rate of musical pulse, often measured in beats per minute. Those beats per minute mean something only under an assumed meter. That is the assumption that costs a factor-of-two tapping a third of its F-measure while leaving AMLt untouched.
  • Chroma is a representation that groups pitches by pitch class across octaves, so it inherits whatever pitch grid those classes were cut from.
  • Polyphonic transcription is the estimation of simultaneous note events from an audio mixture. That means committing to how many notes were sounding, and to which ones they were.

Comparison

Features, notation, or meaning

Those terms serve three different jobs, and the beat-tracking measures show why the difference is worth keeping straight. A low-level descriptor is a pitch, onset, loudness, or timbral feature over time. Symbolic transcription commits to notation. Semantic retrieval commits to meaning. The three are contested on different grounds: whether the signal was measured correctly, whether the right notation was chosen, whether people would agree about what the music is.

The 70 ms F-measure answers the first kind of question — were the detections in the right place in time. CMLt and AMLt answer the second — which pulse is the pulse. The third arrives as a gap between two numbers rather than as one score: 28% against Isophonics, 89.1% against four annotators. All of these come out of the same evaluation run. mir_eval's beat module computes the F-measure and the continuity measures alike. Usually only the first is quoted.

FigureComparison · 3 columns

Low-level descriptor

Pitch, onset, loudness, or timbral feature over time.

  • Decision focus: Define the musical unit
  • Useful evidence: Onset, offset, pitch, and note F-measures with tolerance stated
  • Watch for: Using equal-tempered pitch assumptions for all music
  • Best used when its assumptions are documented for music information retrieval

Symbolic transcription

Notes, beats, chords, or sections expressed as discrete structure.

  • Decision focus: Choose representation
  • Useful evidence: Beat continuity and metrical-level accuracy
  • Watch for: Beat metrics accepting the wrong metrical level
  • Best used when its assumptions are documented for music information retrieval

Semantic retrieval

Finds recordings or passages related by style, mood, instrumentation, or learned similarity.

  • Decision focus: Model temporal structure
  • Useful evidence: Chord and key sequence measures with ambiguity review
  • Watch for: Training and test recordings derived from the same performance or mix
  • Best used when its assumptions are documented for music information retrieval

Key idea

Equal temperament is not universal, and neither is the alternative

Music makes the boundary of music information retrieval easy to cross, and these four conditions are the crossings.

1) Using equal-tempered pitch assumptions for all music. 2) Beat metrics accepting the wrong metrical level. 3) Training and test recordings derived from the same performance or mix. 4) Treating genre or mood labels as objective universal categories.

Crossing 2 already has its pair of numbers: 66.7% where 100% was earned, with AMLt scoring the error as accurate. The other three have been measured just as plainly.

Crossing 1 has a dataset built against it. ORD-CC32 covers the 333 restored recordings of the 1932 Cairo Congress of Arab Music. They are classified by country: Egypt, Iraq, Syria, Turkey, Algeria, Morocco and Tunisia. Three extractors — pYIN, CREPE and predominant-melody-makam — produced pitch series at a 10 ms step. Tonic segments were labelled by hand for 64 of the 333. Baris Bozkurt published it in 2025.

The grid an engineer might reach for instead of equal temperament is not itself a fact. Bozkurt writes: “A significant consensus among ethnomusicologists and theorists views the 24-tone scale primarily as a theoretical construct or a "conceptual map" that musicians use to discuss and compare intervals, rather than a precise reflection of what is performed.” Tonic-aligned mean pitch histograms were then compared by region. Maqam Rast came from 13 Egyptian and 3 Iraqi recordings, maqam Husayni from 2 Egyptian, 3 Iraqi and 2 Tunisian. The paper goes no further than saying the third degree of Rast and the second degree of Husayni “favors that quarter-tone may indeed be a regional choice (Egypt) not applied in recordings from Iraq or Tunisia”, and leaves the interpretation to expert scholars. A pitch grid can be a regional choice inside a single repertoire. Let alone across all music.

Crossing 3 shows up when the same performer sits on both sides of the split. The ISMIR 2004 contest database holds 729 songs, 128 artists, 6 genres. On it, a per-song GMM classifier scored 75.72% ± 3.35 accuracy with no artist filter. Confine songs by one artist to either training or test and it scored 58.50% ± 10.29. That is about 17 accuracy points, with the error bar tripling. Without the filter, 48.84% of test songs found their nearest neighbour among songs by the same artist. Arthur Flexer measured that in 2007. His introduction reports an earlier result from Pampalk and colleagues that was worse still: “The authors found that the use of such an artist filter can lower the classification results quite considerably (with one of their music collection even from 71% down to 27%).”

Crossings 3 and 4 meet in one dataset. GTZAN holds 1,000 excerpts and “appears in at least 100 published works”. Sturm audited it in 2013. He found 50 exact repetitions, 21 recording repetitions, 13 version repetitions and 93 mislabelings in total, 59 of them itemised one by one. He bounded the number of distinct artists at no more than 329 and no fewer than 248. And he wrote: “We see the 100 excerpts in Blues come from only nine artists; and more than a third of the excerpts labeled Reggae come from Bob Marley.” Duplicate recordings straddling train and test. Dozens of genre labels an auditor judged simply wrong. In the corpus a hundred papers reported on.

Pitch grids, metrical levels and genre categories enter the pipeline as choices and get treated as facts — and the measured cost runs from 17 accuracy points to a 71%-down-to-27% collapse.

Example

±50 ms, a quarter tone, and an offset nobody can pin down

A release review therefore needs more than one kind of number, arranged so that a strong figure cannot cover for a useless system. Start by making “tolerance stated” mean something specific. MIREX's note-tracking evaluation, written up in 2009, does exactly that: “In the first scenario, a returned note event is assumed to be correct if its onset is within a +/-50 millisecond range of a ground-truth onset and its F0 is within +/- a quarter tone (3%) of the ground-truth pitch.” An optional second scenario adds an offset within 20% of the ground-truth note's duration or 50 ms, whichever is larger. mir_eval's transcription module carries the same thresholds as defaults: onset_tolerance 0.05 s, pitch_tolerance 50.0 cents, offset_ratio 0.2, offset_min_tolerance 0.05 s.

Then read what the evaluators say about their own reference. Onset-offset performance came out “relatively poor”, and they attribute it to the ground truth rather than to the systems. Offsets were labelled at very low loudness on isolated woodwind tracks and taken from MIDI for the piano set. So “in the woodwind dataset, the offset time may be overestimated, whereas in the MIDI-generated dataset, the offset may be underestimated.” The reference is arguable in both directions at once. A system is being marked against it.

Then show what happens when the tuning in the recording is not the tuning the model assumes. A quarter-tone tolerance is generous against small drift and useless against a repertoire whose degrees sit elsewhere. Show, too, whether the system abstains or falls back there rather than guessing confidently.

  • For core task evidence, onset, offset, pitch, and note F-measures with the tolerance written down rather than left implied: ±50 ms on the onset, ±a quarter tone (3%) on F0, and, where offsets are scored, 20% of the note's duration or 50 ms, whichever is larger.
  • For system behavior, beat continuity and metrical-level accuracy — CMLt and AMLt reported apart. That pair separates a 66.7% factor-of-two tapping from a genuinely well-placed one.
  • For a robustness slice, chord and key sequence measures read together with an ambiguity review. Two experts on the Rock Corpus agree at 0.932 on roots and 0.835 on tetrads, so a progression can be named correctly in more than one way.
  • For lifecycle evidence, human editing time and usefulness for search, practice, or production: how long a musician spends fixing the output, and whether anyone wanted it afterwards.

Report onset, offset, pitch, and note f-measures with tolerance stated together with human editing time and usefulness for search, practice, or production.

Steps

Build a music-label uncertainty sheet

None of this survives in anyone's head between projects, which is why the last artifact is a sheet. An uncertainty sheet records where the labels are contestable. It is what another team needs in order to challenge a label this pipeline treated as settled. Record three things in each row: what defining the musical unit assumes, one counterexample, and what evaluating musically then triggers.

The metrical-level row is three short lines. The assumption is that the annotated metrical level is the musical one. The counterexample is any piece where a reading a factor of two away is defensible — the case that costs 100% to 66.7% on F-measure and nothing at all on AMLt. The trigger is to report CMLt and AMLt separately and to treat a wide gap between them as a finding.

Step 3 — use multiple annotations, record disagreement rather than forcing one reference — has a worked precedent. Dataset2, the SMC beat-tracking evaluation set, began with 678 extracted excerpts. A mutual-agreement threshold (BT-MMA ≤ 1 bit) selected 270 of them. The 19 highest-agreement excerpts were added as a cross-check: 289 pieces for annotation. Holzapfel and colleagues built it — five authors, four of them long-practising musicians. They first recorded spontaneous, uncorrected taps for all 289. Then they annotated them in Sonic Visualiser, with each annotation reviewed by a second author. And they left themselves the option of failing: “Each annotator was given the possibility to reject a file if the annotation process appeared intractable. This happened in 72 cases, resulting in 217 valid beat annotations for Dataset2.” Roughly a quarter of the excerpts they had deliberately selected went unannotated rather than being forced into one reading. A row that says no annotation was possible is a finding, not a gap.

FigureProcess · 4 steps
  1. 1. Choose one task

    Define note, beat, chord, instrument, or section precisely.

  2. 2. Collect difficult traditions

    Include expressive timing, alternate tuning, polyphony, and studio effects.

  3. 3. Use multiple annotations

    Record disagreement rather than forcing one reference.

  4. 4. Test downstream use

    Measure correction effort in notation, remixing, recommendation, or education.

The sheet earns its keep by naming what a contested label costs downstream: notation someone has to correct, a remix built on the wrong metrical level, a recommendation that misfires, a lesson that teaches the mistake.

Key takeaways