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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
https://github.com/MelodicLineHarmonization/melodicLineHarmonization.git
Benham, H.: A Student’s Guide to Harmony and Counterpoint. Rhinegold Publishing Limited, London (2006)
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)
Carnovalini, F., Rodà, A.: Computational creativity and music generation systems: an introduction to the state of the art. Front. AI 3, 14 (2020)
Coello, C.A.C., Lamont, G.B.: Applications of Multi-objective Evolutionary Algorithms, vol. 1. World Scientific, Singapore (2004)
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
Freitas, A., Guimaraes, F.: Melody harmonization in evolutionary music using multiobjective genetic algorithms. In: Proceedings of the Sound and Music Computing Conference (2011)
Gang, D., Lehmann, D., Wagner, N.: Tuning a neural network for harmonizing melodies in real-time. In: ICMC (1998)
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)
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)
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)
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)
Liu, C.H., Ting, C.K.: Computational intelligence in music composition: a survey. IEEE Trans. Emerg. Top. Comput. Intell. 1(1), 2–15 (2016)
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)
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)
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
Mańdziuk, J., Żychowski, A.: A memetic approach to vehicle routing problem with dynamic requests. Appl. Soft Comput. 48, 522–534 (2016)
Moray, A., Williams, C.K.I.: Harmonising chorales by probabilistic inference. Adv. Neural Inf. Process. Syst. 17, 25–32 (2005)
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)
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)
Pachet, F., Roy, P.: Musical harmonization with constraints: a survey. Constraints 6(1), 7–19 (2001)
Prisco, R.D., Zaccagnino, G., Zaccagnino, R.: Evocomposer: an evolutionary algorithm for 4-voice music compositions. Evol. Comput. 28(3), 489–530 (2020)
Rimsky-Korsakov, N.: Practical Manual of Harmony. C. Fischer, New York (2005)
Sikorski, K.: Harmony part 1. PWM (2020)
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)
Wassermann, G., Glickman, M.: Automated harmonization of bass lines from Bach chorales: a hybrid approach. Comput. Music J. 43(2–3), 142–157 (2020)
Ż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)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
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)