cs.CVOct 20, 2026

Data-Driven Glyph Positioning for Handwritten Music Synthesis

Authors: Elona Shatri, Jiří Mayer, Jan Hajič

Organizations: Charles University, Prague, Czech Republic

Abstract

Synthesised data is a common strategy to address the lack of annotated handwritten music scores in Optical Music Recognition (OMR). Smashcima is a recent synthesis framework that assembles pages of handwritten scores by sampling glyph images from MUSCIMA++ and positioning them with hard-coded rules. In this work we ask whether these rules are grounded empirically and whether a learned model for context-dependent positioning can further improve synthesis quality. We extract inter-glyph distributions from around 285 thousand annotated relationships across MUSCIMA++ and OmniOMR, finding that several key parameters deviate systematically from real handwriting. Replacing these constants with empirical means reduces positioning RMSE by up to 60%. We then train a Graph Neural Network (GNN) on the Music Notation Graph structure to predict context-dependent offsets, achieving an additional 50 to 85% RMSE reduction on stems and beams by modelling how neighbouring glyphs constrain placement. Cross-dataset analysis shows that spacing differences between the two corpora are explained by note density (3.3), not style, and that duration-proportional spacing does not hold in handwriting (R2 = 0.001). In downstream evaluation, a YOLOv8 detector pretrained on GNN-positioned synthetic data achieves +30% mAP50 over the baseline and +11% over empirical means when fine-tuned on 200 real handwritten staves, showing that positioning accuracy matters for downstream OMR.

Figures & tables

Explore similar work

CardsList
  1. Optical Music Recognition for Real-World Manuscripts with Synthetic Data

    Jun 8, 2026Jiří Mayer, Martina Dvořáková, Vojtěch Dvořák +6Optical Music RecognitionSynthetic-to-Real Domain Adaptation

  2. Full-Page Optical Music Recognition of Handwritten Monophonic Scores

    Sep 4, 2026Adrian Rosello, Antonio Ríos-Vila, David Rizo +1Optical Music RecognitionSynthetic Data Pretraining