skip to main content
10.1145/3331543.3342578acmconferencesArticle/Chapter ViewAbstractPublication PagesicfpConference Proceedingsconference-collections
demonstration

Demo: counterpoint by construction

Published:23 August 2019Publication History

ABSTRACT

We present Music Tools, an Agda library for analyzing and synthesizing music. The library uses dependent types to simplify encoding of music rules, thus improving existing approaches based on simply typed languages. As an application of the library, we demonstrate an implementation of first-species counterpoint, where we use dependent types to constrain the motion of two parallel voices.

References

  1. James Cheney and Ralf Hinze. 2002. A lightweight implementation of generics and dynamics. In Proceedings of the 2002 ACM SIGPLAN workshop on Haskell. ACM, 90–104. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. Pierre-Evariste Dagand. 2017. The essence of ornaments. Journal of Functional Programming 27 (2017), e9.Google ScholarGoogle ScholarCross RefCross Ref
  3. W. Bas De Haas, José Pedro Magalhães, Remco C. Veltkamp, and Frans Wiering. 2011. HarmTrace: Improving Harmonic Similarity Estimation Using Functional Harmony Analysis. In Proceedings of the 12th International Society for Music Information Retrieval Conference (ISMIR ’11). 67–72.Google ScholarGoogle Scholar
  4. W. Bas De Haas, José Pedro Magalhães, Frans Wiering, and Remco C. Veltkamp. 2013. HarmTrace: Automatic Functional Harmonic Analysis. Computer Music Journal 37:4 (2013), 37–53.Google ScholarGoogle ScholarCross RefCross Ref
  5. Richard A Eisenberg and Stephanie Weirich. 2013. Dependently typed programming with singletons. ACM SIGPLAN Notices 47, 12 (2013), 117–130. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. Johann Joseph Fux. 1965. The Study of Counterpoint. W. W. Norton & Company.Google ScholarGoogle Scholar
  7. Cheng-Zhi Anna Huang, Tim Cooijmans, Adam Roberts, Aaron Courville, and Douglas Eck. 2017. Counterpoint by Convolution. In Proceedings of ISMIR 2017. https://ismir2017.smcnus.org/wp-content/uploads/2017/10/ 187_Paper.pdfGoogle ScholarGoogle Scholar
  8. Paul Hudak and Donya Quick. 2018. The Haskell School of Music: From Signals to Symphonies. Cambridge University Press. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. Hendrik Vincent Koops, José Pedro Magalhães, and W. Bas De Haas. 2013. A Functional Approach to Automatic Melody Harmonisation. In Proceedings of the First ACM SIGPLAN Workshop on Functional Art, Music, Modeling & Design (FARM ’13). ACM, 47–58. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. José Pedro Magalhães and W. Bas de Haas. 2011. Functional modelling of musical harmony: an experience report. In Proceedings of the 16th ACM SIGPLAN International Conference on Functional Programming (ICFP ’11). ACM, New York, NY, USA, 156–162. Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. José Pedro Magalhães and Hendrik Vincent Koops. 2014. Functional Generation of Harmony and Melody. In Proceedings of the Second ACM SIGPLAN Workshop on Functional Art, Music, Modeling & Design (FARM ’14). ACM. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. Stefan Monnier and David Haguenauer. 2010. Singleton types here, singleton types there, singleton types everywhere. In Proceedings of the 4th ACM SIGPLAN workshop on Programming languages meets program verification. ACM, 1–8. Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. Ulf Norell. 2007. Towards a practical programming language based on dependent type theory. Ph.D. Dissertation. Chalmers University of Technology.Google ScholarGoogle Scholar
  14. Walter Piston and Mark DeVoto. 1987. Harmony. W. W. Norton & Company.Google ScholarGoogle Scholar
  15. Dmitrij Szamozvancev and Michael B Gale. 2017. Well-typed music does not sound wrong (experience report). In ACM SIGPLAN Notices, Vol. 52. ACM, 99–104. Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. Nicolas Tabareau, Éric Tanter, and Matthieu Sozeau. 2018. Equivalences for Free: Univalent Parametricity for Effective Transport. Proc. ACM Program. Lang. 2, ICFP, Article 92 (July 2018), 29 pages. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Demo: counterpoint by construction

      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 Owner/Author

        Permission to make digital or hard copies of part or all 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 third-party components of this work must be honored. For all other uses, contact the Owner/Author.

        Publisher

        Association for Computing Machinery

        New York, NY, United States

        Publication History

        • Published: 23 August 2019

        Check for updates

        Qualifiers

        • demonstration

        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