- Introduced by
- Anssi Klapuri
- Year
- 2008
- Type
- Polyphonic audio-to-symbolic conversion
- Family
- Transcription
What does it do?
Automatic music transcription is the task of converting audio recordings into symbolic music notation, such as scores giving note pitch, onset and duration.
Klapuri (2008) surveyed the field as it stood at the time, and the difficulty of polyphony remains central to it. Transcription supports music education, composition analysis and digital preservation. Deep learning systems trained on piano recordings, such as Hawthorne et al.'s Onsets and Frames, have made clear progress, but accuracy on general polyphonic music remains limited.
The intuition behind the method
The core difficulty is that polyphonic audio mixes many simultaneous pitches, and these must be separated to recover individual note sequences. A common decomposition is to estimate which pitches are active at each time, detect note onsets and offsets, and then group the resulting notes into coherent voices. Unlike melody extraction, which follows a single contour, transcription has to recover every note. Deep learning approaches often learn this mapping end to end: given a spectrogram, the network predicts a piano roll (a binary matrix of pitch against time), which is then converted to notation. Octave errors, overlapping notes and instrument-specific timbre make the task harder.
History
Research on automatic transcription grew in the 2000s, with piano as a leading focus. Poliner and Ellis applied discriminative classifiers, support vector machines on spectral features with hidden Markov model smoothing, to piano transcription and reported a frame-level accuracy of 68% on a newly generated test set. Klapuri's (2008) overview is a reference point for the state of the field at that time. Later work moved to deep neural networks; Hawthorne et al.'s Onsets and Frames, which uses a dual-objective design to predict onsets and frames, is a representative example.
When to use it
Choose transcription when the goal is a symbolic representation of recorded music for analysis, study, teaching or archiving, and when manual transcription would be too slow. Solo piano is the best-studied case, since it involves a single instrument with a well-defined timbre; solo voice is harder, and ensemble recordings are harder still. Results are most reliable for clearly articulated notes in standard tuning. Avoid transcription for heavily effects-processed audio, microtonal music, or instruments whose timbre varies strongly across their range, unless the system has been validated on similar material. If the question concerns only chords or the main melodic line, a more targeted task such as chord recognition or melody extraction is usually a better fit.
Limitations and considerations
- Transcription of general ensemble or orchestral music is still unreliable; accuracy falls as the number of simultaneous sources and the density of overlapping notes increase.
- Deep models need large amounts of aligned note-level annotation, which is costly to produce and verify.
- Overlapping notes, fast passages and timbral variation are common failure points.
- Octave errors and both missed and spurious notes occur even in the stronger systems, and these errors propagate into any analysis built on the output.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Produces an editable symbolic representation (notes with pitch, onset and duration) directly from audio, so performances can be analysed without manual transcription.
- The piano roll intermediate is a compact target that neural networks can predict frame by frame, which is one reason piano has been a leading focus of transcription research.
- Note-level evaluation gives an interpretable comparison against annotated ground truth, so missed and spurious notes can be counted separately.
- The output can feed downstream tasks such as score analysis or comparison of performances.
Applications
- Automatic score generation from music performances for musicological study.
- Music education: helping students learn to read and transcribe by ear.
- Digital music library creation and preservation.
- Composition analysis and thematic variation study across movements or pieces.
- Cover song detection and arrangement analysis based on symbolic similarity.
How it works
How it works
Convert the audio into a time-frequency representation such as a mel-spectrogram. Auxiliary inputs, such as pitch salience maps or onset strength curves, may be extracted at this stage.
Train a neural network, such as a CNN-RNN or a Transformer, to predict frame-level active pitches and, optionally, onset probabilities from spectrogram input. The targets are annotated transcriptions aligned to the audio, so the quality of the training labels limits what the model can learn.
Run the trained model on new audio to obtain frame-level pitch probabilities and onset predictions. Frame-level activity forms a piano roll, and note events are formed by combining it with the onset predictions, for example by starting a note at a detected onset and ending it when activity for that pitch stops. The thresholds and grouping rules differ between systems. The resulting notes can be written as MIDI or MusicXML.
Compare predicted notes with ground truth on pitch, onset and duration using note-level precision, recall and F-measure. Note matching normally requires the predicted onset and pitch to agree with the reference within stated tolerances, with offset handled by a separate criterion. Frame-level scores measure something different and should not be reported as note-level results. The tolerances used to match predicted and reference notes vary by application and should be stated explicitly, because scores are comparable only when the same matching rules are used.
Common pitfalls
- Confusing transcription with recognition. Transcription produces a symbolic note sequence; recognition labels what that sequence represents, such as a chord. The two are related but distinct tasks, and a chord label is not a transcription.
- Assuming transcription generalises beyond its training domain. Systems tuned on piano or monophonic material often fail on ensemble recordings, and results on one dataset do not transfer automatically to another.
- Mixing frame-level and note-level scores. Frame-level accuracy, as reported in early piano work, and note-level F-measure measure different things and are not interchangeable.
- Ignoring annotation cost and quality. Evaluation requires ground-truth notation, which is labour-intensive to create, and labelling errors distort the apparent accuracy.
Frequently asked questions
Can automatic transcription handle singing voice or speech?
Yes, but with lower accuracy than instruments. Vibrato, breath, and subtle pitch deviations complicate transcription. Vocal transcription is an active research area with developing methods.
What is a piano roll and why is it useful?
A piano roll is a 2D matrix with time (horizontal) and pitch (vertical) axes, with cells marking active notes. It is a compact, neural-network-friendly representation bridging audio and symbolic notation.
How accurate is state-of-the-art transcription?
Accuracy depends strongly on the material. Systems perform best on piano recordings with curated, well-annotated data, and performance falls considerably on live recordings and dense polyphonic music. Benchmark scores should therefore be read together with the dataset and the evaluation level (frame or note) that produced them.
Can transcription distinguish between different instruments?
Standard transcription outputs symbolic notes without instrument labels. Instrument recognition is a separate task; combining them (joint modeling) is an open research area.
Related methods
Sources
Klapuri, A. (2008). Automatic music transcription as we know it today. Journal of New Music Research, 33(3), 323-337.
Open DOI referencePoliner, G. E., & Ellis, D. P. (2007). A discriminative model for polyphonic piano transcription. IEEE Transactions on Audio, Speech, and Language Processing, 15(3), 1116-1126.
Open DOI referenceHawthorne, C., Elsen, E., Song, J., Roberts, A., Simon, I., Raffel, C., ... & Engel, J. (2019). Onsets and Frames: Dual-Objective Piano Transcription. In ISMIR.
Open publication reference