Skip to main content

Evolutionary Approach to Melodic Line Harmonization

  • Conference paper
  • First Online:
Artificial Intelligence and Soft Computing (ICAISC 2022)

Abstract

The paper presents a novel evolutionary algorithm (EA) for melodic line harmonization (MLH) - one of the fundamental tasks in music composition. The proposed method solves MLH by means of a carefully constructed fitness function (FF) that reflects theoretical music laws, and dedicated evolutionary operators. A modular design of the FF makes the method flexible and easily extensible. The paper provides a detailed analysis of technical EA implementation, its parameterization, and experimental evaluation. A comprehensive study proves the algorithm’s efficacy and shows that constructed harmonizations are not only technically correct (in line with music theory) but also nice to listen to, i.e. they fulfill aesthetic requirements, as well. The latter aspect is verified and rated by a music 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 69.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 89.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. Benham, H.: A Student’s Guide to Harmony and Counterpoint. Rhinegold Publishing Limited, London (2006)

    Google Scholar 

  3. Buys, J., van der Merwe, B.: Chorale harmonization with weighted finite-state transducers. In: Twenty-Third Annual Symposium of the Pattern Recognition Association of South Africa, pp. 95–101. PRASA South Africa (2012)

    Google Scholar 

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

    Google Scholar 

  5. Coello, C.A.C., Lamont, G.B.: Applications of Multi-objective Evolutionary Algorithms, vol. 1. World Scientific, Singapore (2004)

    MATH  Google Scholar 

  6. De Prisco, R., Eletto, A., Torre, A., Zaccagnino, R.: A neural network for bass functional harmonization. In: Di Chio, C., et al. (eds.) EvoApplications 2010. LNCS, vol. 6025, pp. 351–360. Springer, Heidelberg (2010). https://doi.org/10.1007/978-3-642-12242-2_36

    Chapter  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. Gang, D., Lehmann, D., Wagner, N.: Tuning a neural network for harmonizing melodies in real-time. In: ICMC (1998)

    Google Scholar 

  9. Grinstein, E., Duong, N.Q., Ozerov, A., Pérez, P.: Audio style transfer. In: 2018 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pp. 586–590. IEEE (2018)

    Google Scholar 

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

    Google Scholar 

  11. Hu, Y., Liu, K., Zhang, X., Su, L., Ngai, E., Liu, M.: Application of evolutionary computation for rule discovery in stock algorithmic trading: a literature review. Appl. Soft Comput. 36, 534–551 (2015)

    Article  Google Scholar 

  12. Jiang, N., Jin, S., Duan, Z., Zhang, C.: RL-Duet: online music accompaniment generation using deep reinforcement learning. In: Proceedings of the AAAI Conference on Artificial Intelligence, vol. 34, pp. 710–718 (2020)

    Google Scholar 

  13. Liu, C.H., Ting, C.K.: Computational intelligence in music composition: a survey. IEEE Trans. Emerg. Top. Comput. Intell. 1(1), 2–15 (2016)

    Article  Google Scholar 

  14. Lopez-Rincon, O., Starostenko, O., Ayala-San Martín, G.: Algoritmic music composition based on artificial intelligence: a survey. In: 2018 International Conference on Electronics, Communications and Computers, pp. 187–193. IEEE (2018)

    Google Scholar 

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

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

  17. Mańdziuk, J., Żychowski, A.: A memetic approach to vehicle routing problem with dynamic requests. Appl. Soft Comput. 48, 522–534 (2016)

    Article  Google Scholar 

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

    Google Scholar 

  19. Oliveira, H.G.: A survey on intelligent poetry generation: Languages, features, techniques, reutilisation and evaluation. In: Proceedings of the 10th International Conference on Natural Language Generation, pp. 11–20 (2017)

    Google Scholar 

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

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

    Article  MathSciNet  MATH  Google Scholar 

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

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

    Google Scholar 

  24. Sikorski, K.: Harmony part 1. PWM (2020)

    Google Scholar 

  25. Siphocly, N.N., Salem, A.B.M., El-Horabty, E.S.M.: Applications of computational intelligence in computer music composition. Int. J. Intell. Comput. Inf. Sci. 21(1), 59–67 (2021)

    Google Scholar 

  26. Wassermann, G., Glickman, M.: Automated harmonization of bass lines from Bach chorales: a hybrid approach. Comput. Music J. 43(2–3), 142–157 (2020)

    Google Scholar 

  27. Żychowski, A., Gupta, A., Mańdziuk, J., Ong, Y.S.: Addressing expensive multi-objective games with postponed preference articulation via memetic co-evolution. Knowl.-Based Syst. 154, 17–31 (2018)

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Jacek Mańdziuk .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 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. (2023). Evolutionary Approach to Melodic Line Harmonization. In: Rutkowski, L., Scherer, R., Korytkowski, M., Pedrycz, W., Tadeusiewicz, R., Zurada, J.M. (eds) Artificial Intelligence and Soft Computing. ICAISC 2022. Lecture Notes in Computer Science(), vol 13588. Springer, Cham. https://doi.org/10.1007/978-3-031-23492-7_20

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-23492-7_20

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-23491-0

  • Online ISBN: 978-3-031-23492-7

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics