A study of audio mixing methods for piano transcription in violin-piano ensembles

Hyemi Kim, Jiyun Park, Taegyun Kwon, Dasaem Jeong, Juhan Nam

Introduction

Automatic Music Transcription (AMT) is the computational process of converting acoustic music signals into symbolic representations, such as MIDI or sheet music. While deep learning models have achieved high accuracy in transcribing solo instruments—particularly the piano—their performance often degrades significantly in multi-instrument settings. In a violin-piano ensemble, the violin’s signal acts as a non-stationary interference, often leading the model to misidentify violin notes as piano notes or miss piano notes entirely.

A primary obstacle in training robust multi-instrument models is the scarcity of multi-track datasets where individual instruments are recorded in isolation but performed together. To circumvent this, researchers often resort to data augmentation by mixing solo recordings. However, standard "random mixing" often results in musically incoherent audio that lacks the harmonic and rhythmic synchronization found in real-world performances. This study investigates whether "musically-informed" mixing strategies can bridge the gap between solo and ensemble transcription performance.

Methodology

The researchers utilized the Onsets and Frames architecture, a state-of-the-art piano transcription model, as their baseline. To improve its robustness against violin interference, they developed three distinct audio mixing strategies for data augmentation:

1. Random Mixing (Baseline)

This method involves taking random segments of piano and violin audio from different sources and mixing them without regard for musical context. This serves as a baseline to measure the impact of simply introducing interference during training.

2. Key-based Mixing

To simulate the tonal consistency of Western classical music, the researchers used the madmom library to estimate the musical key of individual clips. They only paired piano and violin tracks that shared a harmonic relationship (e.g., a piano in E Major paired with a violin in B Major or A Major). This ensures that the "noise" (the violin) is harmonically related to the target signal (the piano).

3. Onset-based Mixing

Real-world ensembles are characterized by rhythmic synchronization. Using the librosa library for onset detection, the researchers shifted the audio clips to maximize the temporal overlap of note onsets between the two instruments. This forces the model to learn to distinguish between instruments even when they are attacking notes simultaneously.

4. Loudness Control

To ensure realistic acoustic balances, the researchers implemented a loudness control mechanism using Root Mean Square (RMS) values. This prevents one instrument from unnaturally dominating the mix, maintaining a realistic signal-to-interference ratio.

Experimental Setup and Datasets

The study leveraged three primary data sources to evaluate the proposed methods:

  • PFVN-synth: A new dataset comprising 7 hours of violin-piano ensemble audio, generated by rendering MIDI files through high-quality virtual instruments (Bosendorfer Grand Piano and SWAM Violin).
  • MAESTRO + Solo Violin: The authors curated 4.6 hours of unaccompanied violin recordings from YouTube and mixed them with the MAESTRO piano dataset using the proposed augmentation strategies.
  • MusicNetEM: A subset of the MusicNet dataset used to test the models on real-world, professionally recorded ensemble performances.

Results and Discussion

The models were evaluated using the Note F1-score, which accounts for both precision and recall in note identification.

Performance on Synthesized Data

A model trained only on solo piano (the "Lower Bound") achieved an F1-score of 68.5% when tested on the PFVN-synth ensemble data. By applying Onset-based mixing, the performance jumped to 98.2%. This nearly matched the "Upper Bound" score of 98.5% (achieved by transcribing the piano track in isolation), suggesting that temporal alignment is a powerful cue for the model in synthetic environments.

Performance on Real-World Data

On the MusicNetEM dataset, Key-based mixing proved most effective, reaching a Note F1-score of 83.2%, compared to the solo-piano baseline of 75.9%. The researchers noted that while onset alignment is critical for synthetic data, harmonic consistency (Key-based mixing) appears more robust for the complexities of real-world recordings.

Precision vs. Recall

One of the most significant findings was the impact on Note Precision. Introducing violin interference during training caused precision to rise from approximately 63% to 90%. This indicates that the musically-informed augmentation successfully taught the model to ignore the violin’s spectral features, drastically reducing "false positive" notes.

Conclusion

This research demonstrates that music is not random noise; therefore, data augmentation for music models should not be random either. By incorporating harmonic and rhythmic constraints into the mixing process, transcription models can better navigate the complexities of ensemble recordings.

While a performance gap remains between synthesized and real-world audio due to complex acoustics and room reverberation, these musically-informed strategies provide a clear path forward for improving AMT in multi-instrumental contexts. Future work will explore expanding these techniques to other instrument pairings, such as piano-cello and piano-flute duos.

Summary updated

BibTeX
@inproceedings{kim2023study,
  author = {Hyemi Kim and Jiyun Park and Taegyun Kwon and Dasaem Jeong and Juhan Nam},
  title = {{A study of audio mixing methods for piano transcription in violin-piano ensembles}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2023},
  doi = {10.1109/icassp49357.2023.10095061},
}
Figure