skip to main content
10.1145/3331543.3342576acmconferencesArticle/Chapter ViewAbstractPublication PagesicfpConference Proceedingsconference-collections
research-article

Music as language: putting probabilistic temporal graph grammars to good use

Published:23 August 2019Publication History

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.

References

  1. Bernard Bel. 1992. Modelling improvisatory and compositional processes. Languages of Design, Formalisms for Word, Image and Sound 1, 1 (1992), 11–26.Google ScholarGoogle Scholar
  2. 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 ScholarGoogle ScholarDigital LibraryDigital Library
  3. Paul Hudak. 2004. An algebraic theory of polymorphic temporal media. In International Symposium on Practical Aspects of Declarative Languages. Springer, 1–15.Google ScholarGoogle ScholarCross RefCross Ref
  4. 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 ScholarGoogle ScholarDigital LibraryDigital Library
  5. Paul Hudak and Donya Quick. 2018. The Haskell School of Music: From signals to Symphonies. Cambridge University Press. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. Aravind K Joshi and Yves Schabes. 1997. Tree-adjoining grammars. In Handbook of formal languages. Springer, 69–123. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. 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 ScholarGoogle Scholar
  8. James Kippen. 2005. The Tabla of Lucknow: A cultural analysis of a musical tradition. Manohar Publishers.Google ScholarGoogle Scholar
  9. 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 ScholarGoogle ScholarDigital LibraryDigital Library
  10. 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 ScholarGoogle ScholarDigital LibraryDigital Library
  11. Frank Pfenning and Conal Elliott. 1988. Higher-order abstract syntax. In ACM sigplan notices, Vol. 23. ACM, 199–208. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. Donya Quick and Paul Hudak. 2012. Computing with chord spaces. In ICMC.Google ScholarGoogle Scholar
  13. 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 ScholarGoogle ScholarDigital LibraryDigital Library
  14. Martin Rohrmeier. 2011. Towards a generative syntax of tonal harmony. Journal of Mathematics and Music 5, 1 (2011), 35–53.Google ScholarGoogle ScholarCross RefCross Ref
  15. Heinrich Schenker and Oswald Jonas. 1935. Der freie Satz. Vol. 3. Universal Edition.Google ScholarGoogle Scholar
  16. Hiroyuki Seki, Takashi Matsumura, Mamoru Fujii, and Tadao Kasami. 1991. On multiple context-free grammars. Theoretical Computer Science 88, 2 (1991), 191–229. Google ScholarGoogle ScholarDigital LibraryDigital Library
  17. Mark Steedman. 1996. The blues and the abstract truth: Music and mental models. Mental models in cognitive science (1996), 305–318.Google ScholarGoogle Scholar
  18. Mark J Steedman. 1984. A generative grammar for jazz chord sequences. Music Perception: An Interdisciplinary Journal 2, 1 (1984), 52–77.Google ScholarGoogle ScholarCross RefCross Ref
  19. 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 ScholarGoogle ScholarDigital LibraryDigital Library
  20. Mary McGee Wood. 2014. Categorial Grammars (RLE Linguistics B: Grammar). Routledge.Google ScholarGoogle Scholar
  21. 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 ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Music as language: putting probabilistic temporal graph grammars to good use

        Recommendations

        Comments

        Login options

        Check if you have access through your login credentials or your institution to get full access on this article.

        Sign in
        • Published in

          cover image ACM Conferences
          FARM 2019: Proceedings of the 7th ACM SIGPLAN International Workshop on Functional Art, Music, Modeling, and Design
          August 2019
          105 pages
          ISBN:9781450368117
          DOI:10.1145/3331543

          Copyright © 2019 ACM

          Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

          Publisher

          Association for Computing Machinery

          New York, NY, United States

          Publication History

          • Published: 23 August 2019

          Permissions

          Request permissions about this article.

          Request Permissions

          Check for updates

          Qualifiers

          • research-article

          Acceptance Rates

          Overall Acceptance Rate19of23submissions,83%

          Upcoming Conference

          ICFP '24

        PDF Format

        View or Download as a PDF file.

        PDF

        eReader

        View online with eReader.

        eReader