Generation of jazz improvisations in MATLAB

A menudo se dice que "el genio no nace, se hace". Sin embargo, a menudo se considera que los procesos creativos requieren alguna forma de don innato, a veces mistico en su naturaleza. La musica es una de estas actividades, donde incluso aquellos que la practican no estan seguros de donde vienen sus composiciones a pesar de haber empleado anos de trabajo en convertirse en maestros de sus instrumentos. Uno puede afirmar que nuestra habilidad para adaptar rapidamente nuestras experiencias pasadas a nuevos contextos es una de las caracteristicas que define la inteligencia humana. En nuestra vida aparecen situaciones que no nos son familiares donde tenemos que recurrir al juicio, aplicando el curso de accion que consideremos mas apropiado y basando nuestra decision en sucesos previos y teniendo en cuenta los nuevos factores que hacen que las circunstancias sean diferentes con el fin de responder de manera correcta. Tal problema emerge tambien en la musica, en particular en el genero del jazz, donde la improvisacion es un rasgo clave. No importa lo complicado que resulte ser un solo, la improvisacion es una habilidad que puede ser aprendida. Sin embargo, no esta claro como se adquiere en realidad esta habilidad. Una de las teorias imperantes sugiere que la repeticion continuada de material similar lleva a la aparicion de patrones en la obra del solista, que a menudo abarca anos de su carrera. Nos basaremos en esta teoria y la exploraremos en detalle para a continuacion describir y ampliar la implementacion de un algoritmo para la generacion de solos a partir del corpus del saxofonista Charlie Parker. El algoritmo empleara cadenas de Markov para producir una secuencia de notas que guardaran una semejanza al material de Parker debido a la aparicion de motivos musicales recurrentes. Ademas se ofrecera al usuario la posibilidad de insertar sus propias progresiones de acordes para restringir la salida del programa a traves de una interfaz de usuario. Esperamos que esto aporte algo de luz al debate de la improvisacion. La improvisacion no es solamente un problema musical fascinante, sino tambien una parte de nuestra vida cotidiana. Un mejor entendimiento de la improvisacion conlleva un mejor entendimiento de la mente humana, y todo paso hacia la comprension de nuestro propio pensamiento nos ayuda a encontrar la respuesta a una de las preguntas mas importantes de la humanidad:? como funciona nuestro cerebro? It is often said that \a genius is made, not born. " However, creative processes are often considered as acts that require some kind of innate gift, sometimes mystical in its nature. Not surprisingly, music is one of those activities, where even practitioners themselves are unsure of where their compositions come from, and this is despite their spending years working to become masters of their instruments. One can afirrm that our ability to quickly adapt our past experiences for new contexts is one of the traits that defines human intelligence. Unfamiliar situations arise where we have to draw upon our judgment, applying the course of action that we deem most appropriate basing our decision on previous occurrences and taking into account new factors that make the circumstances different in order to respond in a fitting way. Such a problem also emerges in music, particularly in the jazz genre, where improvisation is a core feature. Improvisation emerges from combining creativity and adaptation. It may well be defined as an immediate musical composition. It is one of the most difficult abilities to master as it demands a complete command of the instrument as well as exceptional creativity and musical thought. It forces the artist to adapt her playing at an extraordinarily fast pace, while they move within the confines of the song that are being built, in real time, by the rest of the band. In jazz, this complexity is aggravated by the unconventional chord progressions and frequent key changes (unconventional understood as deviation from the common practice). No matter how challenging and intricate a solo happens to be, improvisation is a skill that can be learned. Proficient jazz artists such as John Coltrane or Dizzy Gillespie would not have felt the need to practise scales everyday for decades if that were not the case. Nevertheless, it is unclear how this skill is actually acquired. Some experts contend that solos are the result of implicit musical rules that dictate the sequence of notes that shapes the output. Others, however, argue that the continued repetition of similar material leads to the appearance of patterns in the soloist's work, sometimes spanning years of their career. This document will touch upon previous research that explores both options, as well as go through some examples of commercial and academical software that tackle the topic of improvisation from different standpoints. We will focus on the former theory and will go into detail about the implementation of a pattern-based algorithm for the generation of solos based on the works of jazz saxophonist Charlie Parker, whose transcribed works are easily available on the internet and other sources. This algorithm, originally presented in Norgaard et al. (2013), will employ Markov chains, a concept that will be thoroughly described throughout the document, to generate a sequence of notes that bear a resemblance to Parker's material, partially through the appearance of reoccurring musical motifs. In addition, our improved program will offer the possibility of inputting chord progressions to constrain the output of the program through a user interface. We hope this work will help shed some light on the ongoing debate between the aforementioned schools of thought. Improvisation is not just a fascinating musical problem, but also a part of our everyday lives. A better understanding of improvisation is a better understanding of the human mind, and every step towards comprehending our own thinking helps us find the answer one of the most important questions for mankind: how does our brain work?