Incorporating Structure and Chord Constraints in Symbolic Transformer-based Melodic Harmonization
Maximos Kaliakatsos-Papakostas, Konstantinos Soiledis, Theodoros Tsamis, Dimos Makris, Vassilis Katsouros, Emilios Cambouropoulos

TL;DR
This paper introduces B*, an algorithm that integrates chord constraints into transformer-based melodic harmonization, addressing the challenge of satisfying specific harmonic requirements during music generation.
Contribution
It proposes a novel algorithm combining beam search and A* to incorporate chord constraints into transformer models for melodic harmonization.
Findings
The B* algorithm effectively enforces chord constraints during generation.
The approach highlights the complexity of constrained music generation.
Potential for heuristic improvements in future work.
Abstract
Transformer architectures offer significant advantages regarding the generation of symbolic music; their capabilities for incorporating user preferences toward what they generate is being studied under many aspects. This paper studies the inclusion of predefined chord constraints in melodic harmonization, i.e., where a desired chord at a specific location is provided along with the melody as inputs and the autoregressive transformer model needs to incorporate the chord in the harmonization that it generates. The peculiarities of involving such constraints is discussed and an algorithm is proposed for tackling this task. This algorithm is called B* and it combines aspects of beam search and A* along with backtracking to force pretrained transformers to satisfy the chord constraints, at the correct onset position within the correct bar. The algorithm is brute-force and has exponential…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsMusic Technology and Sound Studies · Music and Audio Processing · Neuroscience and Music Perception
