Music Synthesis Based on Nonlinear Dynamics

Year: 2012 Authors: Maximos A. Kaliakatsos–Papakostas; Andreas Floros; Michael N. Vrahatis

Core claim

Nonlinear dynamical systems can generate musically meaningful compositions whose tonal complexity is comparable to selected string quartets when measured by Pitch Class Profile entropy.

Topics

algorithmic composition, nonlinear dynamics, Shannon entropy, real-time software, Pitch Class Profiles

Domains

chaos theory, iterative maps, Shannon Information Entropy, modular arithmetic, music synthesis, algorithmic music composition, audio-visual interface, sound design

Methods

Standard map, Hénon map, MIDI mapping, real-time GUI, entropy comparison

Media

Java application, MIDI protocol, graphical user interface, string quartet recordings

Paper text

The text below is the locally extracted OCR/Markdown version of the paper. Raw PDF files remain local and are not published here.

Bridges 2012: Mathematics, Music, Art, Architecture, Culture

Music Synthesis Based on Nonlinear Dynamics

Maximos A. Kaliakatsos–Papakostas Department of Mathematics, University of Patras, Greece, maxk@math.upatras.gr Andreas Floros Department of Audio and Visual Arts, Ionian University, Greece, floros@ionio.gr Michael N. Vrahatis Department of Mathematics, University of Patras, Greece, vrahatis@math.upatras.gr

Abstract

Music composition from nonlinear dynamics has been a subject of thorough research, producing interesting music tracks. Simple chaotic maps or even more complex iterative schemes have been proposed, taking advantage of the “structured spontaneity” of nonlinear dynamics by directly transforming the mathematical objects to musical entities. In this work we examine the music compositions produced by two nonlinear systems in terms of complexity, expressed through the Shannon Information Entropy of their Pitch Class Profiles. We present a methodology to interpret the information obtained by the iterative equations to several tonal and rhythmic attributes. This methodology is implemented in real-time software. A Graphical User Interface is provided that allows the user to adjust several variables while listening to and observing the derived results.

Introduction

Various methods that simulate natural phenomena have been used for algorithmic music composition. These phenomena are mostly described by simple and deterministic rules, but the resulting output sometimes exhibits great structural complexity. Dynamic systems, either in the form of differential equations or as iterative maps, have been used for sound synthesis and music composition. Especially in the latter case, very simple iterative schemes like the logistic function [7] or more complex ones [2], have produced music with interesting structure. This kind of deterministic complexity can offer music that incorporates an amount of information within the thresholds that a human listener considers satisfactory.

This work presents a methodology to translate information corresponding to a specific iteration of dynamical systems to musical entities that describe the pitch, intensity, duration, onset time and polyphony of note events. This methodology is realized in real-time software by which the sonic output can be controlled in real-time, with parallel graphical representation of the derived orbits. A modification of this application is used to export alternative sets of compositions with two different tonal setups, diatonic and chromatic, and results are reported on the Shannon Information Entropy (SIE) of their Pitch Class Profiles (PCP). Furthermore, the same feature is extracted from string quartets of Beethoven, Haydn and Mozart. The comparison of the SIE of the PCP in all the aforementioned pieces provides insights about the potential “compositional capabilities” of the examined dynamic systems for both tonal setups.

From Dynamic Systems to Music

We have built two applications [3] that allow the user to control several parameters and then listen to the music synthesized by well-known and examined nonlinear systems. These systems are the Chirikov Standard Map [1] and the Hénon Map [6, 9], the rich dynamical properties of which have been thoroughly examined [6]. These iterative maps are converted to music by assigning each point (or points in the case of polyphony) of the current iteration to notes, with the use of the MIDI protocol.

Kaliakatsos-Papakostas, Floros and Vrahatis

The Chirikov Standard Map is expressed by the system of equations

where K > 0 is a constant, for the initial points we have and are taken modulo . We consider the parameters of the Hénon Map as follows

where and are constants and the initial points, , are each in .

Each iteration of these two dimensional mappings provides a point with two coordinates that we denote as . These coordinates are used to describe note events that incorporate several attributes, namely pitch, intensity (or velocity under the MIDI terminology), duration, inner onset interval and polyphony. The current point of the iteration is used to describe all these music attributes. In the case of a polyphonic note event, which includes multiple points, the current point is considered the last point of the iteration. The interpretation of the coordinates to the aforementioned musical attributes is accomplished separately for each instrument. The complete process can be described as follows:

a) pitch: the user provides a tonal range and the pitch height of a note event is computed by normalizing the coordinate in the selected range. Hence

where is the nearest integer rounding of a real number . The latter formula computes the normalized quantities as described below for intensity, duration and polyphony.

b) intensity: the user provides an intensity range and the intensity of a note event is computed by normalizing the coordinate in the selected range using the formula described for the computation of pitch.

c) duration: the user provides a duration constant, , that determines the overall duration of the note events produced by an instrument, with lower values creating staccato and higher values producing legato play feelings. We consider to be the normalized value of from within the range of to the range of . The duration of the current event in milliseconds is provided as the multiplication of with .

d) inner onset interval: the user provides four values, , that represent the onset duration of a note event that corresponds to quartile of the coordinates of the respective point. I.e., if we suppose that the current note event has coordinates, then the next note event will occur in a time interval of

in the case of the Hénon map or the Standard map respectively, where represents a duration selected by the user among , , , and .

e) polyphony: the user provides a polyphony index, , which is the upper limit of simultaneous notes that an instrument is allowed to play. The polyphony of the current note event, , is computed as the normalized value of to the range of .

Music Synthesis Based on Nonlinear Dynamics

All values that are required along with some additional controls are adjusted by the user through a Graphical User Interface (GUI). These controls include the real-time adjustment of the coefficients and the current iteration point, while graphical monitoring of the derived orbits is also provided. Furthermore, the user can define a global musical scale for the composition, or separate scales for each instrument. The user can assign all the aforementioned properties to different instruments within a list, creating several orchestration combinations.

Results

To examine the complexity potential of the compositions obtained by the proposed approach, as mentioned previously, we computed the Shannon Information Entropy (SIE) [8] of the PCP for 1200 music tracks composed with the Standard and the Hénon maps. The PCP of a piece describes the distribution of pitches throughout the piece and the SIE of this PCP describes the sparseness of this distribution. In particular, these pieces were composed for random initial values and coefficients and were divided into 4 sets with 300 tracks each, composed with different composition scale setups: SD (Standard Diatonic) and HD (Hénon Diatonic) were composed using major diatonic scales and SD (Standard Chromatic) and HC (Hénon Chromatic) were composed in the chromatic scale. The tonal center for all these compositions was random.

To compare the SIE values provided by the PCPs for the aforementioned artificial compositions with the ones obtained by real music compositions, we also analyzed 150 string quartets, in particular 50 music pieces composed by Beethoven, Haydn and Mozart, denoted as Bsq, Hsq and Msq respectively. Information related to the SIE of the PCP among these string quartets has previously provided promising results for composer identification [4].

Table 1 shows the mean values and the standard deviations of the SIEs from the PCP distribution of all the aforementioned datasets. First, we observe that the string quartets have a greater SIE mean than the artificial pieces. Moreover, the artificial pieces composed in a diatonic scale (HD and SD) are indicated to be considerably less complex than real-world compositions. The chromatic artificial compositions on the other hand seem to have a less “complex” PCP distribution than the string quartets, but with greater standard deviation. Figure 1 illustrates the distribution of the SIEs among all compositions with box plots. It is indicated that the “compositional” capabilities of the Hénon map in chromatic scale are more flexible than the ones of the Standard map, meaning that a wider range of complexity can be achieved by the corresponding compositions.

Artificial compositionsString quartets
HDSDHCSCBsqHsqMsq
μ1.59761.32362.06201.64882.20822.13552.1181
σ0.29660.38440.44320.52420.09330.09710.1018

Table 1: Box plot of the mean values obtained by the PCP distribution among pieces of the HD, SD, HC, SC, Bsq, Hsq and Msq data sets.

Conclusions

In this work we have presented a system that composes music through two well-known nonlinear systems of equations, the Standard (or Chirikov) map and the Hénon map. A methodology for transforming information by these iterative schemes to musical entities has been presented, which is realized in a real-time software application. The utilization of the Shannon Information Entropy (SIE) has allowed a comparative analysis of the compositions of the proposed approach in different modes. Additionally, indications for the complexity of

Kaliakatsos-Papakostas, Floros and Vrahatis

img-0.jpeg Figure 1: Box plots of the PCP distribution SIEs of the examined pieces.

these compositions compared to real-world pieces were provided by the comparison of the aforementioned SIEs with the respective ones in string quartets of Beethoven, Haydn and Mozart.

These results can be further amplified with the utilization of more sophisticated musical features. For example, the information provided by the PCP is “stationary”, in a sense that the transitions between scale degrees is not considered. The transitions can be captured with the utilization of the Markov transition tables [5] (or the N-Gram models). Furthermore, the rhythmic complexity of these compositions should be examined. Finally, we intend to formulate an intelligent system that controls the coefficients of the nonlinear systems in order to produce music that satisfies certain musical criteria. This will allow the exploration of the compositional potentiality of the presented approach more extensively.

References

[1] B. V. Chirikov. Research concerning the theory of non-linear resonance and stochasticity. Nuclear Physics Institute of the Siberian Section of the USSR Academy of Sciences, 1971. [2] A. E. Coca, G. O. Tost, and Liang Zhao. Characterizing chaotic melodies in automatic music composition. Chaos: An Interdisciplinary Journal of Nonlinear Science, 20(3), 2010. [3] Downloadable implementation of the presented work in a Java application. http://sites.google.com/site/maximoskp/NLSysMus.zip, 2012. [4] M. A. Kaliakatsos-Papakostas, M. G. Epitropakis, and M. N. Vrahatis. Feature extraction using pitch class profile information entropy. In Mathematics and Computation in Music, volume 6726 of Lecture Notes in Artificial Intelligence, pages 354-357. Springer Berlin / Heidelberg, 2011. [5] M. A. Kaliakatsos-Papakostas, M. G. Epitropakis, and M. N. Vrahatis. Weighted Markov Chain model for musical composer identification. In Applications of Evolutionary Computation, volume 6025 of LNCS, pages 334-343. Springer Berlin / Heidelberg, 2011. [6] E. Ott. Chaos in Dynamical Systems. Cambridge University Press, April 1993. [7] J. Pressing. Nonlinear maps as generators of musical design. Comp. Music J., 12(2):35-46, 1988. [8] C. E. Shannon. A mathematical theory of communication. ACM SIGMOBILE Mobile Computing and Communications Review, 5(1):3-55, January 2001. [9] M. N. Vrahatis. An efficient method for locating and computing periodic orbits of nonlinear mappings. Journal of Computational Physics, 119(1):105-119, 1995.

0 items under this folder.