skip to main content
research-article

Specification Mining for Machine Improvisation with Formal Specifications

Published: 31 December 2016 Publication History

Abstract

We address the problem of mining musical specifications from a training set of songs and using these specifications in a machine improvisation system capable of generating improvisations imitating a given style of music. Our inspiration comes from control improvisation, which combines learning and synthesis from formal specifications. We mine specifications from symbolic musical data with musical and general usage patterns. We use the mined specifications to ensure that an improvised musical sequence satisfies desirable properties given a harmonic context and phrase structure. We present a specification mining strategy based on pattern graphs and apply it to the problem of supervising the improvisation of blues songs. We present an analysis of the mined specifications and compare the results of improvisations generated with and without specifications.

References

[1]
Rajeev Alur, Pavol Cernỳ, Parthasarathy Madhusudan, and Wonhong Nam. 2005. Synthesis of interface specifications for Java classes. ACM SIGPLAN Notices 40, 1, 98--109.
[2]
Glenn Ammons, Rastislav Bodík, and James R. Larus. 2002. Mining specifications. ACM Sigplan Notices 37, 1, 4--16.
[3]
Gérard Assayag and Shlomo Dubnov. 2004. Using factor oracles for machine improvisation. Soft Computing 8, 9, 604--610.
[4]
Giordano Cabral, Jean-Pierre Briot, and Francois Pachet. 2006. Incremental parsing for real-time accompaniment systems. In Proceedings of the 19th International FLAIRS Conference, Special Track: Artificial Intelligence in Music and Art.
[5]
Michel Caplain. 1975. Finding invariant assertions for proving programs. ACM SIGPLAN Notices 10, 6, 165--171.
[6]
Christos G. Cassandras and Stephane Lafortune. 2006. Introduction to Discrete Event Systems. Springer-Verlag, New York, NY.
[7]
Loek Cleophas, Gerard Zwaan, and Bruce W. Watson. 2003. Constructing factor oracles. In Proceedings of the 3rd Prague Stringology Conference.
[8]
Darrell Conklin and Ian H. Witten. 1995. Multiple viewpoint systems for music prediction. Journal of New Music Research 24, 1, 51--73.
[9]
David Cope. 1991. Computers and Musical Styles. Oxford University Press.
[10]
Alexandre Donzé, Ilge Akkaya, Sanjit A. Seshia, Edward A. Lee, and David Wessel. 2013a. Real-Time Control Improvisation for the SmartJukebox. Retrieved December 14, 2016, from http://chess.eecs.berkeley.edu/pubs/1065.html.
[11]
Alexandre Donzé, Sophie Libkind, Sanjit A. Seshia, and David Wessel. 2013b. Control Improvisation with Application to Music. Technical Report UCB/EECS-2013-183. EECS Department, University of California, Berkeley. http://www.eecs.berkeley.edu/Pubs/TechRpts/2013/EECS-2013-183.html.
[12]
Alexandre Donzé, Rafael Valle, Ilge Akkaya, Sophie Libkind, Sanjit A. Seshia, and David Wessel. 2014. Machine improvisation with formal specifications. In Proceedings of the 40th International Computer Music Conference (ICMC'14).
[13]
Shlomo Dubnov and Gérard Assayag. 2002. Universal prediction applied to stylistic music generation. In Mathematics and Music. Springer, 147--159.
[14]
Shlomo Dubnov, Gérard Assayag, Gill Bejerano, and Olivier Lartillot. 2003. A system for computer music generation by learning and improvisation in a particular style. IEEE Computer 10, 38. http://articles.ircam.fr/textes/Dubnov03a/.
[15]
Dawson Engler, David Yu Chen, Seth Hallem, Andy Chou, and Benjamin Chelf. 2001. Bugs as Deviant Behavior: A General Approach to Inferring Errors in Systems Code. Vol. 35. ACM, New York, NY.
[16]
Daniel J. Fremont, Alexandre Donzé, Sanjit A. Seshia, and David Wessel. 2015. Control improvisation. In Proceedings of the 35th IARCS Annual Conference on Foundations of Software Technology and Theoretical Computer Science (FSTTCS'15). 463--474.
[17]
Mark Gabel and Zhendong Su. 2008a. Javert: Fully automatic mining of general temporal properties from dynamic traces. In Proceedings of the 16th ACM SIGSOFT International Symposium on Foundations of Software Engineering. ACM, New York, NY, 339--349.
[18]
Mark Gabel and Zhendong Su. 2008b. Symbolic mining of temporal specifications. In Proceedings of the 30th International Conference on Software Engineering. ACM, New York, NY, 51--60.
[19]
John Gillick, Kevin Tang, and Robert M. Keller. 2009. Learning jazz grammars. In Proceedings of the 6th Sound and Music Computing Conference (SMC'09). 125--130.
[20]
Jonathan Reuven Gillick. 2009. A Clustering Algorithm for Recombinant Jazz Improvisations. Ph.D. Dissertation. Wesleyan University, Middletown, CT.
[21]
E. Mark Gold. 1967. Language identification in the limit. Information and Control 10, 5, 447--474.
[22]
E. Mark Gold. 1978. Complexity of automaton identification from given data. Information and Control 37, 3, 302--320.
[23]
Stefan Grossman, Stephen Calt, and Hal Grossman. 1973. Country Blues Songbook. Oak Publications.
[24]
Robert M. Keller. 2012. How to Improvise Jazz Melodies. Retrieved December 14, 2016, from http://www.cs.hmc.edu/∼keller/jazz/improvisor/HowToImproviseJazz.pdf.
[25]
Robert M. Keller and David R. Morrison. 2007. A grammatical approach to automatic improvisation. In Proceedings of the 4th Sound and Music Computing Conference (SMC'07). 330--337.
[26]
Wenchao Li, Alessandro Forin, and Sanjit A. Seshia. 2010. Scalable specification mining for verification and diagnosis. In Proceedings of the 47th Design Automation Conference. ACM, New York, NY, 755--760.
[27]
Jack Long. 1999. The Real Book of Blues. Wise, London, England.
[28]
Jérôme Nika and Marc Chemillier. 2012. Improtek: Integrating harmonic controls into improvisation in the filiation of OMax. In Proceedings of the International Computer Music Conference. 180--187.
[29]
Francois Pachet, Pierre Roy, Gabriele Barbieri, and Sony CSL Paris. 2001. Finite-length Markov processes with constraints. Transition 6, 1/3, 635--642.
[30]
Jean-Francois Paiement, Samy Bengio, and Douglas Eck. 2009. Probabilistic models for melodic prediction. Artificial Intelligence 173, 14, 1266--1274.
[31]
Rafael Valle and Adrian Freed. 2015. Symbolic music similarity using neuronal periodicity and dynamic programming. In Mathematics and Computation in Music. Springer, 199--204.
[32]
Ben Wegbreit. 1974. The synthesis of loop predicates. Communications of the ACM 17, 2, 102--113.
[33]
Westley Weimer and George C. Necula. 2005. Mining temporal specifications for error detection. In Tools and Algorithms for the Construction and Analysis of Systems. Springer, 461--476.
[34]
Jinlin Yang, David Evans, Deepali Bhardwaj, Thirumalesh Bhat, and Manuvir Das. 2006. Perracotta: Mining temporal API rules from imperfect traces. In Proceedings of the 28th International Conference on Software Engineering. ACM, New York, NY, 282--291.

Cited By

View all
  • (2023)Detecting Data Anomalies from Their Formal Specifications: A Case Study in IoT SystemsElectronics10.3390/electronics1203063012:3(630)Online publication date: 27-Jan-2023
  • (2021)Combining Real-Time Extraction and Prediction of Musical Chord Progressions for Creative ApplicationsElectronics10.3390/electronics1021263410:21(2634)Online publication date: 28-Oct-2021
  • (2018)Musical agents: A typology and state of the art towards Musical MetacreationJournal of New Music Research10.1080/09298215.2018.1511736(1-50)Online publication date: 10-Sep-2018

Index Terms

  1. Specification Mining for Machine Improvisation with Formal Specifications

        Recommendations

        Comments

        Information & Contributors

        Information

        Published In

        cover image Computers in Entertainment
        Computers in Entertainment   Volume 14, Issue 3
        Special Issue on Musical Metacreation, Part II
        Fall 2016
        109 pages
        EISSN:1544-3574
        DOI:10.1145/3023312
        Issue’s Table of Contents
        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 the author(s) 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

        Accepted: 01 January 2017
        Revised: 01 January 2017
        Published: 31 December 2016
        Received: 01 December 2016
        Published in CIE Volume 14, Issue 3

        Permissions

        Request permissions for this article.

        Check for updates

        Author Tags

        1. Specification mining
        2. control improvisation
        3. formal methods
        4. machine learning

        Qualifiers

        • Research-article
        • Research
        • Refereed

        Contributors

        Other Metrics

        Bibliometrics & Citations

        Bibliometrics

        Article Metrics

        • Downloads (Last 12 months)1
        • Downloads (Last 6 weeks)0
        Reflects downloads up to 03 Mar 2025

        Other Metrics

        Citations

        Cited By

        View all
        • (2023)Detecting Data Anomalies from Their Formal Specifications: A Case Study in IoT SystemsElectronics10.3390/electronics1203063012:3(630)Online publication date: 27-Jan-2023
        • (2021)Combining Real-Time Extraction and Prediction of Musical Chord Progressions for Creative ApplicationsElectronics10.3390/electronics1021263410:21(2634)Online publication date: 28-Oct-2021
        • (2018)Musical agents: A typology and state of the art towards Musical MetacreationJournal of New Music Research10.1080/09298215.2018.1511736(1-50)Online publication date: 10-Sep-2018

        View Options

        Login options

        Full Access

        View options

        PDF

        View or Download as a PDF file.

        PDF

        eReader

        View online with eReader.

        eReader

        HTML Format

        View this article in HTML Format.

        HTML Format

        Figures

        Tables

        Media

        Share

        Share

        Share this Publication link

        Share on social media