Abstract
Piano audio-to-score transcription (A2S) is an important yet underexplored task with extensive applications for music composition, practice, and analysis. However, existing end-to-end piano A2S systems faced difficulties in retrieving bar-level information such as key and time signatures, and have been trained and evaluated with only synthetic data. To address these limitations, we propose a sequence-to-sequence (Seq2Seq) model with a hierarchical decoder that aligns with the hierarchical structure of musical scores, enabling the transcription of score information at both the bar and note levels by multi-task learning. To bridge the gap between synthetic data and recordings of human performance, we propose a two-stage training scheme, which involves pre-training the model using an expressive performance rendering (EPR) system on synthetic audio, followed by fine-tuning the model using recordings of human performance. To preserve the voicing structure for score reconstruction, we propose a pre-processing method for **Kern scores in scenarios with an unconstrained number of voices. Experimental results support the effectiveness of our proposed approaches, in terms of both transcription performance on synthetic audio data in comparison to the current state-of-the-art, and the first experiment on human recordings.
Introduction
Automatic Music Transcription (AMT) typically focuses on identifying notes and their timing (frame-level transcription). However, Audio-to-Score (A2S) transcription is significantly more challenging as it requires generating a human-readable score including time signatures, key signatures, and proper "voicing" (separating notes into left and right-hand parts).
Existing A2S systems struggle with two primary issues:
- Structural Complexity: Music is inherently hierarchical, with notes organized into bars that share key and time signatures. Most models fail to capture this bar-level context.
- The Real-World Gap: Models trained on robotic MIDI-generated audio often fail when applied to real human performances, which feature expressive timing, dynamics, and pedaling.
Methodology
The proposed system utilizes a sequence-to-sequence (Seq2Seq) architecture with three key innovations designed to handle the complexities of piano scores and human performance.
Hierarchical Decoding
Instead of a flat note prediction, the model employs a two-tier decoder. The first tier predicts bar-level features (key and time signatures), which then provide musical context for the second tier. This second tier decodes specific note-level sequences for the upper and lower staffs independently, mirroring how humans read and play piano music.
Two-Stage Training with Expressive Performance Rendering (EPR)
To bridge the gap between synthetic and real-world audio, a two-stage training process was implemented. In the first stage, the model is pre-trained on synthetic audio generated by an Expressive Performance Rendering (EPR) system (VirtuosoNet). This system simulates human-like nuances rather than flat MIDI sounds. In the second stage, the model is fine-tuned on the ASAP dataset, which contains real human recordings aligned with scores.
Voice-Preserving Serialization
To handle polyphony within a single hand, a pre-processing method for the **Kern music format was developed. This method serializes scores into tokens while preserving voicing structure, facilitating more accurate score reconstruction.
Datasets
The model was trained and evaluated using several key data sources:
- MuseSyn & HumSyn: Datasets of pop and classical music scores.
- ASAP Dataset: Real-world human pianist recordings for evaluation and fine-tuning.
- VirtuosoNet: Used to generate expressive synthetic training data from score repositories.
Results and Discussion
The model's performance was measured using the MV2H metric (pitch, rhythm, harmony) and Word Error Rate (WER) for score tokens.
- State-of-the-Art Performance: On synthetic data, the proposed model achieved an 87.2% MV2H score, significantly outperforming the previous baseline of 85.4%.
- Real-World Generalization: In the first experiment of its kind on human recordings (ASAP dataset), the EPR-pre-trained model reached a 74.2% MV2H score after fine-tuning, compared to 72.3% for a standard MIDI-trained model.
- Musical Context: Case studies demonstrated the model's ability to detect temporary key changes (e.g., in Bach’s Prelude and Fugue in D minor), showing that bar-level hierarchical decoding provides critical musical context.
Conclusion
This work presents a significant advancement in A2S transcription by introducing a hierarchical decoding structure and a training scheme that accounts for human expressivity. While limited by the scarcity of aligned real-world data and a constrained vocabulary of musical notations, the results demonstrate that modeling the inherent hierarchy of music and simulating human performance are key to bridging the gap between audio and readable scores. Future work will explore expanding the notation vocabulary and applying this approach to other polyphonic instruments.
Summary updated