VerseScore
Back to blog

Why Automatic Music Transcription Gets Rhythm Wrong

See why accurate pitches can still produce messy notation, how beat tracking and quantization reshape timing, and what to check before trusting a score.

Published VerseScore Editorial
Why Automatic Music Transcription Gets Rhythm Wrong

An automatic transcription can identify the right melody and still produce a terrible-looking score. Notes may start a fraction early, end a fraction late, overlap into the next beat, or leave tiny gaps that become rests. When those continuous performance timings are forced onto a notation grid, a simple phrase can turn into a forest of ties and sixteenth-note fragments.

This is not merely a cosmetic engraving problem. Audio captures a performance; notation describes a structured interpretation of that performance. Rhythm is where the gap between those two representations becomes especially visible.

Audio does not contain barlines

A waveform records changing air pressure over time. It does not label “beat three,” “eighth note,” “pickup measure,” or “swing.” A transcription system must infer those concepts from acoustic evidence.

The problem has several layers:

  1. Detect when a musical event begins.
  2. Estimate its pitch or pitches.
  3. Estimate when it ends.
  4. Find a pulse and tempo.
  5. Decide how events relate to that pulse.
  6. Group beats into measures.
  7. Choose readable note values, rests, ties, voices, and tuplets.

Errors at an early layer propagate. If the beat grid is slightly displaced, a correct onset may be assigned to the wrong subdivision. If the tempo estimate is double the intended pulse, eighth notes may look like quarter notes. If reverberation makes a note appear longer, notation may add an unwanted tie.

Human timing is intentionally imperfect

Musicians do not play like step sequencers. A singer may lean into a phrase. A guitarist may anticipate a backbeat. A pianist may spread a chord. An ensemble may accelerate into a chorus or relax at a cadence. These deviations can be the performance’s character rather than mistakes.

Notation usually compresses that nuance into a simpler rhythmic model. A note played 40 milliseconds late may still be written directly on the beat. A swung pair may be notated as even eighths with a style indication. A rolled chord may be written as a vertical chord with an arpeggio mark.

Automatic systems must distinguish expressive deviation from a different rhythmic value. That requires context. Snapping every attack to the nearest grid can erase feel; preserving every micro-timing difference can make the page unreadable.

Polyphonic audio makes boundaries ambiguous

Spotify’s Basic Pitch supports polyphonic transcription but states that it works best on one instrument at a time. That caveat captures a major source of rhythm error. In a full mix, drums, voice, bass, guitars, keys, room reflections, and production effects overlap.

A kick drum can create a strong onset near a bass note. Distorted guitar produces harmonics that resemble additional pitches. Reverb extends energy after a note is released. Compression changes attack shape. Two instruments may play the same pitch at slightly different times.

Google Research’s MT3 paper describes automatic music transcription as a challenging task that must preserve fine-scale pitch and timing across multiple instruments. It also notes the difficulty of obtaining aligned training data: even expert human transcription is slow. A model therefore operates under both acoustic ambiguity and limited labeled examples.

Beat tracking is an estimate

Beat tracking algorithms commonly derive an onset-strength envelope, estimate a tempo, and select a sequence of beats that balances local evidence with rhythmic continuity. The librosa documentation describes this dynamic-programming approach for its beat tracker.

That works well when the music has stable, audible periodicity. It becomes harder with:

  • a rubato introduction;
  • syncopation with weak downbeats;
  • compound meter;
  • a tempo change;
  • a pickup before the first full measure;
  • sustained ambient textures;
  • percussion-free solo performance; or
  • a recording that begins mid-phrase.

A mathematically plausible pulse is not always the musician’s intended pulse. The algorithm may lock to half-time or double-time. Both grids align with many attacks, but they imply different notation.

Quantization turns estimates into note values

Quantization maps detected timings onto a discrete grid. On a sixteenth-note grid, each beat is divided into four positions. A detected onset is moved or interpreted relative to the nearest plausible position.

Useful quantization is not simply “round everything.” It should consider:

  • the strength and confidence of each onset;
  • the current tempo and meter;
  • whether a note is grace-like or structural;
  • expected minimum note length;
  • repeated-note separation;
  • overlaps inside one melodic voice;
  • tuplets and swing;
  • phrase continuity; and
  • whether silence is a rest or a decaying tail.

For a monophonic melody, overlapping notes are often impossible on the target instrument or voice. A cleanup stage may shorten the first note, keep the stronger event, or split repeated notes based on onset evidence. For polyphony, the same overlap may be a valid chord or independent voice.

Why “more detailed” can be less accurate

Suppose a performer intends four quarter notes. The detected durations are 0.93, 1.04, 0.88, and 1.12 beats. A literal renderer might create dotted values, ties, and short rests to reproduce those measurements. The result is acoustically detailed but musically misleading.

A readable transcription recognizes the higher-level pattern: four quarter notes. It deliberately discards small timing variations. This is a form of interpretation, similar to a human transcriber deciding that a singer’s delayed entrance is expressive rather than a thirty-second rest.

Conversely, aggressive rounding can destroy a real syncopation. If an attack is consistently between beats, snapping it to the beat changes the phrase. Quantization quality depends on knowing which deviations are structural.

A practical rhythm-cleanup sequence

Review an automatic score in this order:

1. Confirm the pulse. Tap along with the recording. Decide whether the displayed tempo is the main beat, half-time, or double-time.

2. Confirm the meter and first downbeat. A correct tempo with the wrong bar offset makes every measure look awkward.

3. Inspect phrase-level rhythm. Look for recurring patterns. Repetition is strong evidence that similar passages should receive similar notation.

4. Remove acoustic debris. Very short, low-confidence notes may be noise, harmonics, consonants, or percussion bleed rather than intended pitches.

5. Resolve overlaps and repeated notes. Decide whether they are a chord, separate voice, legato continuation, or re-articulation.

6. Quantize conservatively. Start with the coarsest grid that preserves the phrase. Introduce sixteenth notes or tuplets only when the recording requires them.

7. Listen after editing. A visually clean score can still have lost a syncopation or tied across an intended attack.

8. Export a visual and editable copy. The MusicXML, MIDI, and PDF guide explains why each representation catches different problems.

What input makes rhythm easier to recover

A single instrument with clear attacks is easier than a mastered full mix. A steady tempo is easier than rubato. A close, dry recording is easier than a distant room recording. A clean beginning that includes the pickup and first downbeat gives the tracker more context than a clip cut in mid-measure.

If stems are available, transcribe the target melody or instrument separately. Source separation can help, but it may also introduce artifacts, so compare against the original. For a live recording, avoid clipping and keep background audio below the target performance.

Treat the result as an editable draft

Automatic transcription is valuable because it converts a long blank-page task into a review task. It can propose pitches, timings, and structure quickly. The responsible workflow still verifies the result against the recording.

VerseScore emphasizes rhythm cleanup because a score is only useful when a musician can read it. Pitch detection is one stage; beat estimation, noise filtering, repeated-note handling, grid alignment, and engraving are separate stages with separate failure modes.

When a generated score looks overly complex, do not assume the performance was overly complex. First check pulse, measure alignment, and quantization. The cleanest correct notation is often the one that explains the performance with the fewest unnecessary rhythmic events.

Sources

Related articles