skip to main content
10.1145/3321707.3321710acmconferencesArticle/Chapter ViewAbstractPublication PagesgeccoConference Proceedingsconference-collections
research-article

On the impact of domain-specific knowledge in evolutionary music composition

Published:13 July 2019Publication History

ABSTRACT

In this paper we investigate the effect of embedding different levels of musical knowledge in the virtual machine (VM) architectures and phenotype representations of an algorithmic music composition system. We examine two separate instruction sets for a linear genetic programming framework that differ in their knowledge of musical structure: one a Turing-complete register machine, unaware of the nature of its output; the other a domain-specific language tailored to operations typically employed in the composition process. Our phenotype, the output of the VM, is rendered as a musical model comprising a sequence of notes represented by duration and pitch. We compare three different pitch schemes with differing embedded knowledge of tonal concepts, such as key and mode.

To derive a fitness metric, we extract musical features from a corpus of Hungarian folk songs in the form of n-grams and entropy values. Fitness is assessed by extracting those same attributes from the phenotype and finding the maximal similarity with representative corpus features.

With two different VM architectures and three pitch schemes, we present and compare results from a total of six configurations, and analyze whether the domain-specific knowledge impacts the results and the rate of convergence in a beneficial manner.

Skip Supplemental Material Section

Supplemental Material

References

  1. David Arthur and Sergei Vassilvitskii. 2007. k-means++: The advantages of careful seeding. In Proceedings of the 18th Annual Symposium on Discrete Algorithms (ACM-SIAM). Society for Industrial and Applied Mathematics, New Orleans, Louisiana, 1027--1035. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. Jon Bentley. 1986. Programming pearls: little languages. Commun. ACM 29, 8 (1986), 711--721. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. John A. Biles. 1994. GenJam: A Genetic Algorithm for Generating Jazz Solos. In Proceedings of the 1994 International Computer Music Conference (ICMC). Michigan Publishing, Aarhus, Denmark, 131--137.Google ScholarGoogle Scholar
  4. Piero P. Bonissone, Raj Subbu, Neil Eklund, and Thomas R. Kiehl. 2006. Evolutionary algorithms + domain knowledge = real-world evolutionary computation. IEEE Transactions on Evolutionary Computation 10, 3 (2006), 256--280. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. Markus F. Brameier and Wolfgang Banzhaf. 2007. Linear genetic programming (1st ed.). Springer Science & Business Media. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. Elaine Chew. 2002. The Spiral Array: An Algorithm for Determining Key Boundaries. In Proceedings of the Second International Conference on Music and Artificial Intelligence (ICMAI). Springer Berlin Heidelberg, Edinburgh, Scotland, 18--31. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. Ching-Hua Chuan and Elaine Chew. 2005. Polyphonic Audio Key Finding Using the Spiral Array CEG Algorithm. In Proceedings of the 2005 IEEE International Conference on Multimedia and Expo (ICME). IEEE, Amsterdam, The Netherlands, 21--24.Google ScholarGoogle ScholarCross RefCross Ref
  8. Darrell Conklin. 2003. Music generation from statistical models. In Proceedings of the 2003 Symposium on Artificial Intelligence and Creativity in the Arts and Sciences. AISB, Aberystwyth, Wales, 30--35.Google ScholarGoogle Scholar
  9. Dan Costelloe and Conor Ryan. 2007. Towards models of user preferences in interactive musical evolution. In Proceedings of the 9th Genetic and Evolutionary Computation Conference (GECCO). ACM, London, UK, 2254--2254. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. Thomas M. Cover and Joy A. Thomas. 2012. Elements of information theory. John Wiley & Sons.Google ScholarGoogle Scholar
  11. Kenneth De Jong. 1988. Learning with genetic algorithms: An overview. Machine learning 3, 2--3 (1988), 121--138. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. Inderjit S. Dhillon, Yuqiang Guan, and Brian Kulis. 2004. Kernel k-means, spectral clustering and normalized cuts. In Proceedings of the 10th International Conference on Knowledge Discovery and Data Mining (SIGKDD). ACM, Seattle, Washington, USA, 551--556. Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. Brad Dolin, Maribel García Arenas, and Juan J. Merelo. 2002. Opposites Attract: Complementary Phenotype Selection for Crossover in Genetic Programming. In Proceedings of the 7th International Conference on Parallel Problem Solving from Nature (PPSN) (PPSN VII). Springer-Verlag, London, UK, 142--152. Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. Patrick Donnelly and John Sheppard. 2011. Evolving Four-Part Harmony Using Genetic Algorithms. In Applications of Evolutionary Computation. Vol. 6625. Springer, Berlin, Heidelberg, 273--282. Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. Shyamala Doraisamy and Stefan M. Rüger. 2004. A Polyphonic Music Retrieval System Using N-Grams. In Proceedings of the 5th International Conference on Music Information Retrieval (ISMIR). Universitat Pompeu Fabra, Barcelona, Spain, 204--209.Google ScholarGoogle Scholar
  16. Richard O. Duda, Peter E. Hart, and David G. Stork. 2000. Pattern classification. John Wiley & Sons. Google ScholarGoogle ScholarDigital LibraryDigital Library
  17. Arne Eigenfeldt. 2012. Corpus-based recombinant composition using a genetic algorithm. Soft Computing 16, 12 (2012), 2049--2056. Google ScholarGoogle ScholarDigital LibraryDigital Library
  18. Jose D. Fernández and Francisco Vico. 2013. AI methods in algorithmic composition: A comprehensive survey. Journal of Artificial Intelligence Research 48 (2013), 513--582. Google ScholarGoogle ScholarCross RefCross Ref
  19. Carlos M. Fonseca and Peter J. Fleming. 1993. Genetic Algorithms for Multiobjective Optimization: Formulation, Discussion and Generalization. In Proceedings of the 5th International Conference on Genetic Algorithms (ICGA). Morgan Kaufmann Publishers Inc., San Francisco, CA, USA, 416--423. Google ScholarGoogle ScholarDigital LibraryDigital Library
  20. Martin Fowler. 2010. Domain Specific Languages (1st ed.). Addison-Wesley Professional. Google ScholarGoogle ScholarDigital LibraryDigital Library
  21. P. M. Gibson and J. A. Byrne. 1991. NEUROGEN, musical composition using genetic algorithms and cooperating neural networks. In Proceedings of the Second International Conference on Artificial Neural Networks (ICANN). IET, Bournemouth, UK, 309--313.Google ScholarGoogle Scholar
  22. Per Hartmann. 1990. Natural Selection of Musical Identities. In Proceedings of the 1990 International Computer Music Conference (ICMC). Michigan Publishing, Glasgow, Scotland, 234--236.Google ScholarGoogle Scholar
  23. David M. Hofmann. 2015. A Genetic Programming Approach to Generating Musical Compositions. In Proceedings of the 4th International Conference on Evolutionary and Biologically Inspired Music, Sound, Art and Design (EvoMUSART), Vol. 9027. Springer, Cham, Copenhagen, 89--100.Google ScholarGoogle ScholarCross RefCross Ref
  24. Andrew Horner and David E. Goldberg. 1991. Genetic Algorithms and ComputerAssisted Music Composition.. In Proceedings of the 4th International Conference on Genetic Algorithms (ICGA). Morgan Kaufmann, San Diego, CA, USA, 437--441.Google ScholarGoogle Scholar
  25. Brad Johanson and Riccardo Poli. 1998. GP-Music: An Interactive Genetic Programming System for Music Generation with Automated Fitness Raters. In Proceedings of the Third Annual Conference on Genetic Programming. Morgan Kaufmann, University of Wisconsin, Madison, Wisconsin, USA, 181--186.Google ScholarGoogle Scholar
  26. John R. Koza. 1992. Genetic programming: on the programming of computers by means of natural selection. MIT Press. Google ScholarGoogle ScholarDigital LibraryDigital Library
  27. Carol L. Krumhansl. 2001. A key-finding algorithm based on tonal hierarchies. In Cognitive Foundations of Musical Pitch. Oxford University Press, 77--110.Google ScholarGoogle Scholar
  28. David Lidov and Jim Gabura. 1973. A Melody Writing Algorithm Using a Formal Language Model. Computers in the Humanities 3--4 (1973), 138--148.Google ScholarGoogle Scholar
  29. Adam Lipowski and Dorota Lipowska. 2012. Roulette-wheel selection via stochastic acceptance. Physica A: Statistical Mechanics and its Applications 391, 6 (2012), 2193--2196.Google ScholarGoogle Scholar
  30. ManYat Lo and Simon M. Lucas. 2007. N-gram fitness function with a constraint in a musical evolutionary system. In Proceedings of the IEEE Congress on Evolutionary Computation (CEC). IEEE, Singapore, 4246--4251.Google ScholarGoogle Scholar
  31. Róisín Loughran, James McDermott, and Michael O'Neill. 2016. Grammatical Music Composition with Dissimilarity Driven Hill Climbing. In Proceedings of the 5th International Conference on Evolutionary and Biologically Inspired Music, Sound, Art and Design (EvoMUSART). Springer, Porto, Portugal, 110--125. Google ScholarGoogle ScholarDigital LibraryDigital Library
  32. Søren T. Madsen and Gerhard Widmer. 2007. Key-finding with Interval Profiles. In Proceedings of the 2007 International Computer Music Conference (ICMC). Michigan Publishing, Copenhagen, Denmark, 212--215.Google ScholarGoogle Scholar
  33. Bill Z. Manaris, Patrick Roos, Penousal Machado, Dwight Krehbiel, Luca Pellicoro, and Juan Romero. 2007. A Corpus-Based Hybrid Approach to Music Analysis and Composition. In Proceedings of the Twenty-Second AAAI Conference on Artificial Intelligence. AAAI Press, 839--845. Google ScholarGoogle ScholarDigital LibraryDigital Library
  34. Christopher D. Manning, Prabhakar Raghavan, and Hinrich Schütze. 2008. Introduction to information retrieval. Cambridge University Press. Google ScholarGoogle Scholar
  35. Christopher D. Manning and Hinrich Schütze. 1999. Foundations of statistical natural language processing. MIT press. Google ScholarGoogle ScholarDigital LibraryDigital Library
  36. Leonard C. Manzara, Ian H. Witten, and Mark James. 1992. On the Entropy of Music: An Experiment with Bach Chorale Melodies. Leonardo Music Journal 2, 1 (1992), 81.Google ScholarGoogle ScholarCross RefCross Ref
  37. Nobuo Masataka. 2007. Music, evolution and language. Developmental Science 10, 1 (2007), 35--39.Google ScholarGoogle ScholarCross RefCross Ref
  38. Jon McCormack. 1996. Grammar based music composition. Complex systems 96 (1996), 321--336.Google ScholarGoogle Scholar
  39. Ryan A. McIntyre. 1994. Bach in a box: the evolution of four part Baroque harmony using the genetic algorithm. In Proceedings of the IEEE First World Congress on Computational Intelligence. IEEE, Orlando, Florida, USA, 852--857.Google ScholarGoogle ScholarCross RefCross Ref
  40. Robert I. McKay, Nguyen X. Hoai, Peter A. Whigham, Yin Shan, and Michael O'Neill. 2010. Grammar-based genetic programming: a survey. Genetic Programming and Evolvable Machines 11, 3--4 (2010), 365--396. Google ScholarGoogle ScholarDigital LibraryDigital Library
  41. Marjan Mernik, Jan Heering, and Anthony M. Sloane. 2005. When and how to develop domain-specific languages. ACM computing surveys (CSUR) 37, 4 (2005), 316--344. Google ScholarGoogle ScholarDigital LibraryDigital Library
  42. George A. Miller. 1956. The magical number seven, plus or minus two: Some limits on our capacity for processing information. Psychological review 63, 2 (1956), 81.Google ScholarGoogle Scholar
  43. Eduardo Reck Miranda and John Al Biles. 2007. Evolutionary Computer Music. Springer-Verlag New York, Inc., Secaucus, NJ, USA. Google ScholarGoogle ScholarDigital LibraryDigital Library
  44. Artemis Moroni, Jônatas Manzolli, Fernando Von Zuben, and Ricardo Gudwin. 2000. Vox populi: An interactive evolutionary system for algorithmic music composition. Leonardo Music Journal 10 (2000), 49--54.Google ScholarGoogle ScholarCross RefCross Ref
  45. Peter Nordin, Wolfgang Banzhaf, and Frank D. Francone. 1999. Efficient evolution of machine code for CISC architectures using instruction blocks and homologous crossover. Advances in genetic programming 3 (1999), 275--299. Google ScholarGoogle ScholarDigital LibraryDigital Library
  46. Alfonso Ortega, Rafael Sánchez Alfonso, and Manuel Alfonseca. 2002. Automatic Composition of Music by Means of Grammatical Evolution. In Proceedings of the 2002 International Conference on APL: Array Processing Languages: Lore, Problems, and Applications. ACM, Madrid, Spain, 148--155. Google ScholarGoogle ScholarDigital LibraryDigital Library
  47. Marcus T. Pearce. 2005. The construction and evaluation of statistical models of melodic structure in music perception and composition. Ph.D. Dissertation. City University London.Google ScholarGoogle Scholar
  48. Somnuk Phon-Amnuaisuk, Andrew Tuson, and Geraint Wiggins. 1999. Evolving Musical Harmonisation. In Proceedings of the 1999 International Conference on Artificial Neural Nets and Genetic Algorithms. Springer, Portorož, Slovenia, 229--234.Google ScholarGoogle ScholarCross RefCross Ref
  49. R. Plomp and J. M. Levelt. 1965. Tonal Consonance and Critical Bandwidth. The Journal of the Acoustical Society of America 38, 4 (10 1965), 548--560.Google ScholarGoogle ScholarCross RefCross Ref
  50. Riccardo Poli, William B Langdon, Nicholas F McPhee, and John R Koza. 2008. A field guide to genetic programming. Lulu. com. Google ScholarGoogle ScholarDigital LibraryDigital Library
  51. John Reddin, James McDermott, and Michael O'Neill. 2009. Elevated Pitch: Automated Grammatical Evolution of Short Compositions. In Applications of Evolutionary Computing. Lecture Notes in Computer Science, Vol. 5484. Springer Berlin Heidelberg, 579--584. Google ScholarGoogle ScholarDigital LibraryDigital Library
  52. Conor Ryan, John J. Collins, and Michael O'Neill. 1998. Grammatical evolution: Evolving programs for an arbitrary language. In Proceedings of the First European Conference on Genetic Programming (EuroGP). Springer, Paris, France, 83--96. Google ScholarGoogle ScholarDigital LibraryDigital Library
  53. Eleanor Selfridge-Field. 2004. Music Theory for Computer Applications. (2004). http://www.ccarh.org/courses/254/MusicTheory_ComputerApps2004.htmGoogle ScholarGoogle Scholar
  54. Csaba Sulyok, Andrew McPherson, and Christopher Harte. 2019. Evolving the process of a virtual composer. Natural Computing 18, 1 (2019), 47--60. Google ScholarGoogle ScholarDigital LibraryDigital Library
  55. Joseph P. Swain. 1986. The need for limits in hierarchical theories of music. Music Perception: An Interdisciplinary Journal 4, 1 (1986), 121--147.Google ScholarGoogle ScholarCross RefCross Ref
  56. David Temperley. 2001. The cognition of basic musical structures. MIT Press. Google ScholarGoogle ScholarDigital LibraryDigital Library
  57. Nao Tokui and Hitoshi Iba. 2000. Music composition with interactive evolutionary computation. In Proceedings of the Third International Conference on Generative Art, Vol. 17. Milan, Italy, 215--226.Google ScholarGoogle Scholar
  58. Esko Ukkonen, Kjell Lemström, and Veli Mäkinen. 2003. Geometric Algorithms for Transposition Invariant Content-Based Music Retrieval. In Proceedings of the 4th International Conference on Music Information Retrieval (ISMIR). Johns Hopkins University Press, Maryland, USA, 193--199.Google ScholarGoogle Scholar
  59. Rodney Waschka II. 2007. Composing with Genetic Algorithms: GenDash. In Evolutionary Computer Music. Springer London, 117--136.Google ScholarGoogle Scholar
  60. Raymond Whorley and Darrell Conklin. 2016. Music Generation from Statistical Models of Harmony. Journal of New Music Research 45, 2 (2016), 160--183.Google ScholarGoogle ScholarCross RefCross Ref
  61. Jackie Wiggins. 2007. Compositional process in music. In International handbook of research in arts education. Springer Netherlands, 453--476.Google ScholarGoogle Scholar
  62. Jacek Wolkowicz, Malcolm Heywood, and Vlado Keselj. 2009. Evolving indirectly represented melodies with corpus-based fitness evaluation. In Workshops on Applications of Evolutionary Computation. Springer Berlin Heidelberg, Tübingen, Germany, 603--608. Google ScholarGoogle ScholarDigital LibraryDigital Library
  63. Jacek Wolkowicz, Zbigniew Kulka, and Vlado Keselj. 2008. N-gram-based approach to composer recognition. Archives of Acoustics 33, 1 (2008), 43--55.Google ScholarGoogle Scholar
  64. Chia L. Wu, Chien H. Liu, and Chuan K. Ting. 2014. A novel genetic algorithm considering measures and phrases for generating melody. In Proceedings of the 2014 Congress on Evolutionary Computation (CEC). IEEE, Beijing, China, 2101--2107.Google ScholarGoogle Scholar

Index Terms

  1. On the impact of domain-specific knowledge in evolutionary music composition

      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
        GECCO '19: Proceedings of the Genetic and Evolutionary Computation Conference
        July 2019
        1545 pages
        ISBN:9781450361118
        DOI:10.1145/3321707

        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: 13 July 2019

        Permissions

        Request permissions about this article.

        Request Permissions

        Check for updates

        Qualifiers

        • research-article

        Acceptance Rates

        Overall Acceptance Rate1,669of4,410submissions,38%

        Upcoming Conference

        GECCO '24
        Genetic and Evolutionary Computation Conference
        July 14 - 18, 2024
        Melbourne , VIC , Australia

      PDF Format

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader