Automatic Composition of Music Using a Genetic Algorithm, Emotional Musical Theory and Machine Learning

Authors

  • Adriana Lara Instituto Politécnico Nacional
  • Giovanni Guzmán Instituto Politécnico Nacional
  • Natan Vilchis Instituto Politécnico Nacional

DOI:

https://doi.org/10.13053/cys-27-2-4646

Keywords:

Music composition, multiobjective optimization, evolutionary music

Abstract

This work proposes a mathematical model for computer-aided music composition as a multi-objective optimization problem. This work aims to create a framework to automatically generate a set of songs with two melodies by combining a genetic algorithm with machine learning. Musical patterns were studied [16, 6, 18, 2] to simplify them and apply them for the construction of the optimization model. This work uses recent emotional music theory to construct the optimization problem [11]. Three conflicting objective functions represent the desired characteristics of the melody to be created: (1) song happiness, (2) song minimalism, and (3) song genre. Two of these objectives are analytically designed, fulfilling well-studied features like those in [14, 25, 11]. The third objective function was developed using a machine learning model like in [5, 8, 27]. The software JSymbolic is used [15] for extracting features in real-time and getting the score with the machine learning model trainer in the present work. The results obtained by this work can be listened to by test examples presented in a video format

Author Biographies

Adriana Lara, Instituto Politécnico Nacional

Escuela Superior de Física y Matematicas

Giovanni Guzmán, Instituto Politécnico Nacional

Centro de Investigacion en Computación

Natan Vilchis, Instituto Politécnico Nacional

Escuela Superior de Física y Matematicas

Downloads

Published

2023-06-15

Issue

Section

Articles