ABSTRACT
Music composers have long been attracted by the idea of an automated tool for music generation, that is able to aid them in their day-to-day compositional process. We focus on algorithmic composition techniques that do not aim to produce complete music pieces, but rather provide an expert composer with a source of copious amounts of musical ideas to explore.
A promising formalism towards this direction are probabilistic temporal graph grammars (PTGGs), which allow for the automatic generation of musical structures by defining a set of expressive rewrite rules.
However, the primary focus so far has been on generating harmonic structures, setting aside the other two main pillars of music: melody and rhythm. We utilize the expressiveness of PTGGs to transcribe grammars found in the musicology literature. In order to do so, we make slight modifications to the original PTGG formalism and provide a concise domain-specific language (DSL) embedded in Haskell to define such grammars. Furthermore, we employ a heuristics-driven post-processing step that interprets the abstract musical structures produced by our grammars into concrete musical output.
Lastly, parametrizing over different musical configurations enables more user control over the generative process. We produce multiple variations of four configurations to demonstrate the flexibility of our framework and motivate the use of formal grammars in automated music composition.
- Bernard Bel. 1992. Modelling improvisatory and compositional processes. Languages of Design, Formalisms for Word, Image and Sound 1, 1 (1992), 11–26.Google Scholar
- Richard A Eisenberg, Dimitrios Vytiniotis, Simon Peyton Jones, and Stephanie Weirich. 2014. Closed type families with overlapping equations. ACM SIGPLAN Notices 49, 1 (2014), 671–683. Google ScholarDigital Library
- Paul Hudak. 2004. An algebraic theory of polymorphic temporal media. In International Symposium on Practical Aspects of Declarative Languages. Springer, 1–15.Google ScholarCross Ref
- Paul Hudak and David Janin. 2014. Tiled polymorphic temporal media. In Proceedings of the 2nd ACM SIGPLAN international workshop on Functional art, music, modeling & design. ACM, 49–60. Google ScholarDigital Library
- Paul Hudak and Donya Quick. 2018. The Haskell School of Music: From signals to Symphonies. Cambridge University Press. Google ScholarDigital Library
- Aravind K Joshi and Yves Schabes. 1997. Tree-adjoining grammars. In Handbook of formal languages. Springer, 69–123. Google ScholarDigital Library
- Robert M Keller and David R Morrison. 2007. A grammatical approach to automatic improvisation. In Proceedings, Fourth Sound and Music Conference, Lefkada, Greece, July.Google Scholar
- James Kippen. 2005. The Tabla of Lucknow: A cultural analysis of a musical tradition. Manohar Publishers.Google Scholar
- Sam Lindley and Conor McBride. 2014. Hasochism: the pleasure and pain of dependently typed Haskell programming. ACM SIGPLAN Notices 48, 12 (2014), 81–92. Google ScholarDigital Library
- Simon Peyton Jones, Dimitrios Vytiniotis, Stephanie Weirich, and Geoffrey Washburn. 2006. Simple unification-based type inference for GADTs. In ACM SIGPLAN Notices, Vol. 41. ACM, 50–61. Google ScholarDigital Library
- Frank Pfenning and Conal Elliott. 1988. Higher-order abstract syntax. In ACM sigplan notices, Vol. 23. ACM, 199–208. Google ScholarDigital Library
- Donya Quick and Paul Hudak. 2012. Computing with chord spaces. In ICMC.Google Scholar
- Donya Quick and Paul Hudak. 2013. Grammar-based automated music composition in Haskell. In Proceedings of the first ACM SIGPLAN workshop on Functional art, music, modeling & design. ACM, 59–70. Google ScholarDigital Library
- Martin Rohrmeier. 2011. Towards a generative syntax of tonal harmony. Journal of Mathematics and Music 5, 1 (2011), 35–53.Google ScholarCross Ref
- Heinrich Schenker and Oswald Jonas. 1935. Der freie Satz. Vol. 3. Universal Edition.Google Scholar
- Hiroyuki Seki, Takashi Matsumura, Mamoru Fujii, and Tadao Kasami. 1991. On multiple context-free grammars. Theoretical Computer Science 88, 2 (1991), 191–229. Google ScholarDigital Library
- Mark Steedman. 1996. The blues and the abstract truth: Music and mental models. Mental models in cognitive science (1996), 305–318.Google Scholar
- Mark J Steedman. 1984. A generative grammar for jazz chord sequences. Music Perception: An Interdisciplinary Journal 2, 1 (1984), 52–77.Google ScholarCross Ref
- Philip Wadler and Stephen Blott. 1989. How to make ad-hoc polymorphism less ad hoc. In Proceedings of the 16th ACM SIGPLAN-SIGACT symposium on Principles of programming languages. ACM, 60–76. Google ScholarDigital Library
- Mary McGee Wood. 2014. Categorial Grammars (RLE Linguistics B: Grammar). Routledge.Google Scholar
- Brent A Yorgey, Stephanie Weirich, Julien Cretin, Simon Peyton Jones, Dimitrios Vytiniotis, and José Pedro Magalhães. 2012. Giving Haskell a promotion. In Proceedings of the 8th ACM SIGPLAN workshop on Types in language design and implementation. ACM, 53–66. Google ScholarDigital Library
Index Terms
- Music as language: putting probabilistic temporal graph grammars to good use
Recommendations
Temporal-scope grammars for polyphonic music generation
FARM 2021: Proceedings of the 9th ACM SIGPLAN International Workshop on Functional Art, Music, Modelling, and DesignWe present temporal-scope grammars for automatic composition of polyphonic music. In the context of this work, polyphony can refer to any arrangement of musical entities (notes, chords, measures, etc.) that is not purely sequential in the time ...
EvoBassComposer: a multi-objective genetic algorithm for 4-voice compositions
GECCO '10: Proceedings of the 12th annual conference on Genetic and evolutionary computationIn this paper we consider the musical problem called unfigured bass harmonization: a bass line is given and the composer has to write other 3 voices to have a complete 4-voice piece of music with a 4-note chord for each bass note. Solving such a problem ...
An Application for Evolutionary Music Composition Using Autoencoders
Artificial Intelligence in Music, Sound, Art and DesignAbstractThis paper presents a new interactive application that can generate music according to a user’s preferences inspired by the process of biological evolution. The application composes sets of songs that the user can choose from as a basis for the ...
Comments