Abstract
Recent years have witnessed a growing interest in research related to the detection of piano pedals from audio signals in the music information retrieval community. However, to our best knowledge, recent generative models for symbolic music have rarely taken piano pedals into account. In this work, we employ the transcription model proposed by Kong et al. to get pedal information from the audio recordings of piano performance in the AILabs1k7 dataset, and then modify the Compound Word Transformer proposed by Hsiao et al. to build a Transformer decoder that generates pedal-related tokens along with other musical tokens. While the work is done by using inferred sustain pedal information as training data, the result shows hope for further improvement and the importance of the involvement of sustain pedal in tasks of piano performance generations.
Introduction
While artificial intelligence has become remarkably proficient at generating melodies and harmonies, it often overlooks the "soul" of piano performance: the sustain pedal. In piano performance, the sustain pedal is not merely an accessory; it is a fundamental tool used to blend harmonies, create resonance, and convey deep emotional nuances. Most existing symbolic music generation models, such as those generating standard MIDI files, focus primarily on pitch, velocity, and duration. This research addresses this gap by introducing a method to incorporate sustain pedal information into symbolic music generation.
The Challenge of Sustain Pedals
The authors identify two primary hurdles in modeling piano pedaling:
- Data Scarcity: High-quality symbolic datasets (MIDI) that include accurate pedal information are rare. While the MAESTRO dataset exists for classical music, the pedal usage recorded there is often highly subjective and technically complex.
- Technical Complexity: In classical music, pedaling techniques—such as anticipatory, rhythmic, or legato pedaling—are subtle and difficult for current models to distinguish from noise or stylistic variation.
To overcome these, the researchers focused on pop music, where pedaling is more predictably tied to rhythm and chord changes, providing a clearer signal for a Transformer model to learn.
Methodology
The researchers developed a two-step pipeline to integrate pedal awareness into a generative model. First, they addressed the lack of labeled data by using a state-of-the-art high-resolution piano transcription model (Kong et al.) to infer sustain pedal movements from audio recordings in the AILabs1k7 dataset. These "pseudo-labels" served as the ground truth for training.
Second, they utilized a "Compound Word" (CP) Transformer architecture. Unlike standard MIDI-like representations that treat every musical event as a separate token in a linear stream, the CP representation groups related musical attributes—such as pitch, duration, and velocity—into a single "super token" at a specific timestamp.
As shown in the figure above, the architecture was modified to include a "Pedal" token within the metrical family, alongside chord and tempo tokens. To simplify the learning task, the authors quantized pedal durations into 10 discrete types, ranging from an eighth note to eight beats.
Data Representation and Tokenization
The proposed representation significantly differs from traditional MIDI-like event streams. By grouping tokens, the model can more easily learn the structural relationships between harmony (chords) and pedaling.
The table above highlights how the "Ours" column incorporates explicit Tempo, Chord, and Pedal tokens, which are absent or handled differently in standard MIDI-like formats. This structured approach reduces the vocabulary size and the sequence length the Transformer must process, making it easier to find correlations between notes and pedal usage.
Datasets and Results
The model was trained primarily on AILabs1k7, which contains 1,748 audio samples of pop piano covers. The MAESTRO dataset was used as a reference for classical music, though the authors found pop music more suitable for initial modeling due to the simpler relationship between pedals, beats, and chords.
As a "Late-Breaking Demo," the results are primarily qualitative but promising:
- Proof of Concept: The authors successfully demonstrated that a Transformer can generate musically acceptable sustain pedal sequences alongside notes.
- Enhanced Realism: The inclusion of the sustain pedal significantly improves the musicality of the output, avoiding the "dry" or overly staccato sound typical of raw MIDI generation.
- Open Access: The community can explore the results via the authors' GitHub repository and demo webpage.
Limitations and Future Work
Despite the success of this proof-of-concept, several limitations remain. The model relies on "pseudo-labels" from automated transcription, meaning any errors in the transcription phase are learned by the generative model. Furthermore, the study is limited to the sustain pedal, ignoring the soft (una corda) and sostenuto pedals. Future research will aim to explore how pedaling can be used to express specific emotions, requiring more nuanced datasets and the modeling of complex performance dynamics.
Summary updated