Nothing Special   »   [go: up one dir, main page]

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

Demo: counterpoint by construction

Published: 23 August 2019 Publication 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.
[2]
Pierre-Evariste Dagand. 2017. The essence of ornaments. Journal of Functional Programming 27 (2017), e9.
[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.
[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.
[5]
Richard A Eisenberg and Stephanie Weirich. 2013. Dependently typed programming with singletons. ACM SIGPLAN Notices 47, 12 (2013), 117–130.
[6]
Johann Joseph Fux. 1965. The Study of Counterpoint. W. W. Norton & Company.
[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.pdf
[8]
Paul Hudak and Donya Quick. 2018. The Haskell School of Music: From Signals to Symphonies. Cambridge University Press.
[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.
[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.
[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.
[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.
[13]
Ulf Norell. 2007. Towards a practical programming language based on dependent type theory. Ph.D. Dissertation. Chalmers University of Technology.
[14]
Walter Piston and Mark DeVoto. 1987. Harmony. W. W. Norton & Company.
[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.
[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.

Cited By

View all
  • (2023)Weighted Refinement Types for Counterpoint CompositionProceedings of the 11th ACM SIGPLAN International Workshop on Functional Art, Music, Modelling, and Design10.1145/3609023.3609804(2-7)Online publication date: 30-Aug-2023

Recommendations

Comments

Please enable JavaScript to view thecomments powered by Disqus.

Information & Contributors

Information

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
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.

Sponsors

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 23 August 2019

Check for updates

Author Tags

  1. Agda
  2. counterpoint
  3. dependent types

Qualifiers

  • Demonstration

Conference

ICFP '19
Sponsor:

Acceptance Rates

Overall Acceptance Rate 19 of 23 submissions, 83%

Upcoming Conference

ICFP '25
ACM SIGPLAN International Conference on Functional Programming
October 12 - 18, 2025
Singapore , Singapore

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)11
  • Downloads (Last 6 weeks)1
Reflects downloads up to 24 Nov 2024

Other Metrics

Citations

Cited By

View all
  • (2023)Weighted Refinement Types for Counterpoint CompositionProceedings of the 11th ACM SIGPLAN International Workshop on Functional Art, Music, Modelling, and Design10.1145/3609023.3609804(2-7)Online publication date: 30-Aug-2023

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media