GAN-based Content-Conditioned Generation of Handwritten Musical Symbols
Gerard Asbert, Pau Torras, Lei Kang, Alicia Fornés, Josep Lladós
TL;DR
This work tackles Optical Music Recognition under data scarcity by proposing a content-conditioned GAN that generates realistic handwritten music symbols at the symbol level and then engraves them into full scores using Smashcima. The approach combines a GANWriting-inspired architecture with a CNN-based symbol classifier, along with an engraving pipeline, to produce diverse, controllable handwriting styles while maintaining symbol fidelity. Quantitative and qualitative evaluations show that the generated symbols exhibit strong realism and that the integrated line-level pipeline yields scores whose structure approximates real manuscripts, indicating the potential of synthetic data to augment OMR training. The study also outlines practical avenues for improvement, including exploring diffusion or transformer-based models and expanding the symbol set to further bridge the gap between synthetic and real handwritten music notation.
Abstract
The field of Optical Music Recognition (OMR) is currently hindered by the scarcity of real annotated data, particularly when dealing with handwritten historical musical scores. In similar fields, such as Handwritten Text Recognition, it was proven that synthetic examples produced with image generation techniques could help to train better-performing recognition architectures. This study explores the generation of realistic, handwritten-looking scores by implementing a music symbol-level Generative Adversarial Network (GAN) and assembling its output into a full score using the Smashcima engraving software. We have systematically evaluated the visual fidelity of these generated samples, concluding that the generated symbols exhibit a high degree of realism, marking significant progress in synthetic score generation.
