Skip to main content

Human-Level Melodic Line Harmonization

  • Conference paper
  • First Online:
Computational Science – ICCS 2022 (ICCS 2022)

Abstract

This paper examines potential applicability and efficacy of Artificial Intelligence (AI) methods in automatic music generation. Specifically, we propose an Evolutionary Algorithm (EA) capable of constructing melodic line harmonization with given harmonic functions, based on the rules of music composing which are applied in the fitness function. It is expected that harmonizations constructed in accordance to these rules would be formally correct in terms of music theory and, additionally, would follow less-formalised aesthetic requirements and expectations. The fitness function is composed of several modules, with each module consisting of smaller parts. This design allows for its flexible modification and extension. The way the fitness function is constructed and tuned towards better quality harmonizations is discussed in the context of music theory and technical EA implementation. In particular, we show how could generated harmonizations be modelled by means of adjusting the relevance of particular fitness function components. The proposed method generates solutions which are technically correct (i.e. in line with music harmonization theory) and also “nice to listen to” (i.e. aesthetically plausible) as assessed by an expert - a harmony teacher.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 89.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 119.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. https://github.com/MelodicLineHarmonization/melodicLineHarmonization.git

  2. Agmon, E.: The Languages of Western Tonality. Springer, Heidelberg (2013). https://doi.org/10.1007/978-3-642-39587-1

    Book  Google Scholar 

  3. Benham, H.: A Student’s Guide to Harmony and Counterpoint. Rhinegold Publishing Limited, London (2006)

    Google Scholar 

  4. Carnovalini, F., Rodà, A.: Computational creativity and music generation systems: an introduction to the state of the art. Front. Artif. Intell. 3, 14 (2020)

    Article  Google Scholar 

  5. Crocker, R.L.: A History of Musical Style. Dover Publications Inc., New York (2018)

    Google Scholar 

  6. Evans, B., Fukayama, S., Goto, M., Munekata, N., Ono, T.: Autochoruscreator: four-part chorus generator with musical feature control, using search spaces constructed from rules of music theory. In: Proceedings ICMC (2014)

    Google Scholar 

  7. Freitas, A., Guimaraes, F.: Melody harmonization in evolutionary music using multiobjective genetic algorithms. In: Proceedings of the Sound and Music Computing Conference (2011)

    Google Scholar 

  8. Hild, H., Feulner, J., Menzel, W.: HarmoNet: a neural net for harmonizing chorales in the style of J.S.Bach. In: NIPS 2091: Proceedings of the 4th International Conference on Neural Information Processing Systems, pp. 267–274 (1991)

    Google Scholar 

  9. Kaliakatsos-Papakostas, M., Floros, A., Vrahatis, M.N.: Artificial intelligence methods for music generation: a review and future perspectives. In: Nature-Inspired Computation and Swarm Intelligence, pp. 217–245 (2020)

    Google Scholar 

  10. Mańdziuk, J., Goss, M., Woźniczko, A.: Chopin or not? A memetic approach to music composition. In: 2013 IEEE Congress on Evolutionary Computation, pp. 546–553 (2013)

    Google Scholar 

  11. Mańdziuk, J., Woźniczko, A., Goss, M.: A neuro-memetic system for music composing. In: Iliadis, L., Maglogiannis, I., Papadopoulos, H. (eds.) AIAI 2014. IAICT, vol. 436, pp. 130–139. Springer, Heidelberg (2014). https://doi.org/10.1007/978-3-662-44654-6_13

    Chapter  Google Scholar 

  12. Moray, A., Williams, C.K.I.: Harmonising chorales by probabilistic inference. Adv. Neural. Inf. Process. Syst. 17, 25–32 (2005)

    Google Scholar 

  13. Olseng, O., Gambäck, B.: Co-evolving melodies and harmonization in evolutionary music composition. In: International Conference on Computational Intelligence in Music, Sound, Art and Design (2018)

    Google Scholar 

  14. Pachet, F., Roy, P.: Musical harmonization with constraints: a survey. Constraints 6(1), 7–19 (2001)

    Article  MathSciNet  Google Scholar 

  15. Prisco, R.D., Zaccagnino, G., Zaccagnino, R.: Evocomposer: an evolutionary algorithm for 4-voice music compositions. Evol. Comput. 28(3), 489–530 (2020)

    Article  Google Scholar 

  16. Rimsky-Korsakov, N.: Practical Manual of Harmony. C. Fischer, New York (2005)

    Google Scholar 

  17. Sikorski, K.: Harmonia cz. 1. PWM (2020)

    Google Scholar 

  18. Vechtomova, O., Sahu, G., Kumar, D.: LyricJam: a system for generating lyrics for live instrumental music. In: Proceedings of the 11th International Conference on Computational Creativity (2021)

    Google Scholar 

  19. Wiggins, G.A.: Searching for computational creativity. N. Gener. Comput. 24(3), 209–222 (2006). https://doi.org/10.1007/BF03037332

    Article  MATH  Google Scholar 

  20. Yi, L., Goldsmith, J.: Automatic generation of four-part harmony. In: Proceedings of the Fifth UAI Bayesian Modeling Applications Workshop (2007)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Adam Żychowski .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2022 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Mycka, J., Żychowski, A., Mańdziuk, J. (2022). Human-Level Melodic Line Harmonization. In: Groen, D., de Mulatier, C., Paszynski, M., Krzhizhanovskaya, V.V., Dongarra, J.J., Sloot, P.M.A. (eds) Computational Science – ICCS 2022. ICCS 2022. Lecture Notes in Computer Science, vol 13350. Springer, Cham. https://doi.org/10.1007/978-3-031-08751-6_2

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-08751-6_2

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-08750-9

  • Online ISBN: 978-3-031-08751-6

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics