Automatic music composition using answer set programming

Georg Boenn, Martin Brain, Marina De Vos, John Ffitch

Research output: Contribution to journalArticlepeer-review

22 Citations (SciVal)
316 Downloads (Pure)


Music composition used to be a pen and paper activity. These days music is often composed with the aid of computer software, even to the point where the computer composes parts of the score autonomously. The composition of most styles of music is governed by rules. We show that by approaching the automation, analysis and verification of composition as a knowledge representation task and formalising these rules in a suitable logical language, powerful and expressive intelligent composition tools can be easily built. This application paper describes the use of answer set programming to construct an automated system, named Anton, that can compose melodic, harmonic and rhythmic music, diagnose errors in human compositions and serve as a computer-aided composition tool. The combination of harmonic, rhythmic and melodic composition in a single framework makes Anton unique in the growing area of algorithmic composition. With near real-time composition, Anton reaches the point where it can not only be used as a component in an interactive composition tool but also has the potential for live performances and concerts or automatically generated background music in a variety of applications. With the use of a fully declarative language and an "off-the-shelf" reasoning engine, Anton provides the human composer a tool which is significantly simpler, more compact and more versatile than other existing systems.
Original languageEnglish
Pages (from-to)397-427
Number of pages31
JournalTheory and Practice of Logic Programming
Issue number2-3
Early online date22 Feb 2011
Publication statusPublished - Mar 2011


Dive into the research topics of 'Automatic music composition using answer set programming'. Together they form a unique fingerprint.

Cite this