|
Complex Network Application in Music: Uncovering Universal Properties in Favourable Human Perception of MusicC. K. Tse and M. Small For details of network constuction, music recomposition and archives of sound files, please see http://cktse.eie.polyu.edu.hk/MUSIC/. Introduction Across cultures, and between individuals, certain musical pieces are consistently rated more favourably than others and the mathematical analysis of musical perception has a long history [1]. In contrast to previous descriptive mathematical analyses, we introduce a data-driven transformation to represent a musical score as a complex network [2, 3]. We find that musical scores which are widely perceived to be "good" generate complex networks with certain invariant properties: scale-free networks with strong clustering of nodes within the network. We describe a method to generate random musical compositions from these networks (essentially, as a weighted random walk on the network) and find that scores generated in this manner are also perceived to be "good" and are qualitatively similar to the specific score from which the generating network was produced.
Network Construction A musical score, or even the performance of a particular musician can be represented as a MIDI (Musical Instrument Digital Interface) file. The MIDI file encodes a musical composition as a series of events, where each event includes information describing both the pitch and timing of a note. (If a MIDI file is transcribed from a musicalscore, this information will be precise; if the information is derived from an actual performance there will be more variability.) Using this information we construct a complex network as follows. Each MIDI event (a single musical note) corresponds to a node in the complex network. wo nodes in the network are linked by an edge if they succeed one another in the musical score. Weight is ascribed to a given edge based on the relative frequency with which the two nodes are adjacent. Directionality is based on temporal order. FIGURE BELOW: Network gerenated from the entire Mozart's sonata.
FIGURE ON THE LEFT: Degree distribution for the same Mozart's sonata network (number of links k versus frequency p(k).
Discussions These complex networks therefore encapsulate some features of the underlying musical scores used to generate them. We can also use these complex networks to generate new artificial scores which share the same properties. We choose a random initial node on the network and randomly follow one of the links from that node to another based on the relative weight of the links. We repeat this procedure and record the sequence of nodes that are traversed. The corresponding notes (both pitch and duration) give a random score. If one was to then generate a new network from that score it would (asymptotically) be equivalent to the original. The suprising and intruiging consequence of this procedure is that the random scores are both pleasing and qualitatively similar to the original score. That is, random scores generated from the network derived from Chopin's sonatas also sound like Chopin, those derived from the Cantonese pop network also sound like Cantopop [5]. Of course, by virtue of our simple construction these random scores will lack the large scale structure of the original and be somewhat more variable. But, this does demonstrate that the complex network encapsulates enough information to quantify basic features of a particular composition or style. As with actual composition, large scale structure can be imposed aposteriori and selection from between many candidate random scores can be used to produce "optimal" compositions. References
Publications
First written 2 May 2008; updated 23 September 2008 |