Signal-to-Score Music Transcription using Graphical Models

Emir Kapanci, Avi PfefferIJCAI 2005

Abstract

Automatic music transcription—the process of converting raw audio into a symbolic musical score—remains a significant challenge due to the expressive nature of human performance. This paper presents an end-to-end system that utilizes a family of graphical models to bridge the gap between noisy audio signals and clean notation. By employing Reversible Jump Markov Chain Monte Carlo (RJMCMC) for inference, the system can dynamically re-evaluate note segmentations, effectively correcting errors from initial onset detectors. Evaluation on monophonic vocal music demonstrates that incorporating rhythmic and pitch priors significantly enhances transcription accuracy, achieving a combined performance score of nearly 88%.

Introduction

The "holy grail" of music technology is the ability to take a raw audio recording—such as a person singing—and automatically generate a clean, readable musical score. This task, known as signal-to-score transcription, involves navigating three distinct levels of representation:

  1. Audio Level: The raw waveform or spectrogram.
  2. Performance Level: A list of "sound events" characterized by physical onset times and frequencies (similar to a raw MIDI file).
  3. Score Level: Symbolic notation, such as an "A4" quarter note positioned on a specific beat.

The primary difficulty lies in the transition from the performance level to the score level. Human performances are rarely metronomically perfect; they involve expressive timing, pitch drift, and "soft" onsets that make precise detection difficult. Traditional systems often fail because they treat the output of onset detectors as ground truth. If an onset detector misses a note or creates a spurious one, the resulting rhythmic transcription becomes incoherent. This research addresses this "noisy middle" by building a system capable of reasoning about and correcting segmentation errors during the transcription process.

Methodology: Probabilistic Graphical Models

The authors propose a two-stage pipeline. First, a preprocessing stage uses a fundamental frequency (F0) detector and a hierarchical onset detector tuned for high recall. This ensures that most actual notes are captured, even at the cost of introducing false positives (extra notes).

The core of the system is a family of probabilistic graphical models designed to handle rhythm and pitch separately but cohesively.

Rhythm and Tempo Modeling

The rhythm model accounts for the relationship between the score-level duration of notes and their actual performance-level timing. As shown in Figure 1, the model incorporates variables for tempo ($\rho$), beat positions ($\omega$), and score durations ($\lambda$).

Figure 1: The graphical model for rhythm and tempo, illustrating the dependencies between tempo, beat positions, and observed performance times.

Key features of this model include:

  • Tempo and Tuning Drift: Modeled as first-order Gaussian processes, allowing the performer's internal clock and pitch reference to shift naturally over time.
  • Expressive Timing ("Stealing"): A novel mechanism allows a note to "steal" time from its neighbor (e.g., swing or rubato) without altering the global tempo.

Pitch Modeling

Similarly, a pitch model uses an n-gram prior to represent the likelihood of certain melodic intervals, helping the system distinguish between intentional notes and performance artifacts.

Inference via RJMCMC

Because the number of notes in a piece is unknown and variable, the system must be able to change the "dimension" of its model (e.g., by merging two segments into one note). The authors utilize Reversible Jump Markov Chain Monte Carlo (RJMCMC) to perform this search. This allows the system to "jump" between different model structures, effectively searching for the most musically plausible grouping of sound events.

Evaluation and Results

The system was evaluated using a corpus of 60 minutes of monophonic vocal music, specifically Renaissance works by G.P. Palestrina. The "musical priors"—the HMM for rhythm and the n-gram model for pitch—were trained on 78 additional scores to provide the system with a stylistic context.

Quantitative Performance

The full system achieved a combined accuracy score of 87.93%. A critical finding was the importance of the rhythm prior; without it, duration accuracy dropped from 87.15% to a mere 50.06%. This highlights that a "sense of rhythm" is essential for correct quantization.

Qualitative Analysis

The effectiveness of the RJMCMC approach is visible in the transcribed scores. By allowing the system to regroup observations, it avoids the messy rhythmic errors typical of baseline systems that cannot reconsider initial segmentations.

Figure 4: An example of a transcribed score (All-R) compared to the ground truth. Triangles indicate areas where the system's transcription differs from the original score.

Conclusion and Future Work

This research demonstrates that accepting the inherent noise in onset detection and building "musical common sense" into the transcription model is a robust strategy for signal-to-score conversion. While currently limited to monophonic lines and computationally intensive due to the nature of MCMC, the framework provides a solid foundation for future work. Expanding the model to handle polyphonic music and optimizing the search space for real-time applications remain the next frontiers in automated music transcription.

Reference: Kapanci, E., & Pfeffer, A. (2004). Signal-to-Score Music Transcription using Graphical Models. Harvard University.

Summary updated

BibTeX
@inproceedings{kapanci2005signal,
  author = {Emir Kapanci and Avi Pfeffer},
  title = {{Signal-to-Score Music Transcription using Graphical Models}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2005},
}
Figure