MorpheuS: music generation with structure and tension
MorpheuS is an automatic music generation system, which I have developed together with Prof. Elaine Chew as part of my Marie-Sklodowska Curie individual postdoc fellowship. The full title of the project Is: MorpheuS: Hybrid Machine Learning – Optimization techniques To Generate Structured Music Through Morphing And Fusion.
MorpheuS currently implements pattern detection algorithms and a tonal tension model to constrain polyphonic music generation. The software for the tension models is available here. The details of the algorithm are described in:
This set of 3+3 pieces by MorpheuS were presented for the first time at the Partnerships concert, 23 May 2017, curated by Bob Sturm and Oded Ben-Tal. The music was recorded live by Ebenezer Acquah at St Dunstan and All Saints Church in Stepney, London:
Partnerships: 3+3 morphed pieces by Bach+MorpheuS and Kabalevsky+MorpheuS from Elaine Chew on Vimeo.
The MorpheuS Haydn 110 piece was recently featured in the PRISM concert series in Stanford, see the announcement in The Examiner and at the With/Without concert in London. The resulting lecture talk given by Elaine Chew is available below (MorpheuS starts at 23:00):
PRISM Series. Elaine Chew: Stolen from Elaine Chew on Vimeo.
The full sheet of the generated Haydn 110 piece:
The MorhpeuS Bach score:
Project summary: State-of-the-art music generation systems (Continuator, OMax, Mimi) produce music that sounds good on a note-to-note level but lacks critical structure/direction necessary for long term coherence. To tackle this problem, we propose to generate compositions based on structural templates at varying hierarchical levels. Our novel approach deploys machine-learning methods in an optimization context to morph existing pieces into new ones and to fuse different styles. We aim to develop a framework that combines machine learning techniques that learn style, with a powerful optimization method, the variable neighbourhood search (VNS) algorithm, for generating music. This approach allows the learned model to incorporate a wide variety of constraints, including those for preserving long term coherence and structure. It promises to effect a step-change in automatic music generation by moving the field in the new direction of generating structured music using hybrid machine learning-optimization techniques. The applicant is an operations researcher-musician, ideal for this work. A first step combines her VNS music generation algorithm with machine learning methods to ensure proper style evaluation. In previous work, the applicant has shown that VNS outperforms genetic algorithms when generating counterpoint with a rule-based objective function. In a preliminary study, the applicant has demonstrated the effectiveness of using machine learning techniques as evaluation metrics for optimisation methods. The applicant has extensive web development experience; to reach the widest possible audience, the resulting system will be made available in an interactive website where users can morph and fuse musical pieces. This work is situated in the area of digital media, with a European consumer expenditure of over €33 billion in 2011, projected to increase. Music generation in digital music has direct applications in game music, interactive arts, and stock-music for advertising/videos.
Acknowledgement
This project has received funding from the European Union’s Horizon 2020 research and innovation programme under the Marie Skłodowska-Curie grant agreement No 658914.

Scores
Scores of pieces generated by MorpheuS:
Documentary
Channel News Asia documentary featuring MorpheuS:
Related
News and posts about MorpheuS
- Keynote at DMRN on controllable music generation (18 March 2021)
- New MOE Tier 2 grant on music generation with emotion that matches video (26 February 2019)
- Channel News Asia documentary on MorpheuS music generation algorithm (18 October 2018)
- Video on MorhpeuS - Music generation with patterns and tension profile (5 March 2018)
- New article on the MoprheuS music generation system in IEEE Transactions of Affective Computng (5 December 2017)
- Talk on music generation at Jukedeck, London (31 May 2017)
- Research visit to Singapore at A*STAR and IEEE TENCON (7 December 2016)
- Tension models in music generation at ICMPC (8 July 2016)
- Tonight MorpheuS Haydn will be performed in London (24 June 2016)
- Talk and performance of MorpheuS Hadyn at TENOR, Cambridge (UK) (28 May 2016)
- MorpheuS Haydn piece performed in Stanford by Elaine Chew. (26 May 2016)
- Invited seminar at IRCAM, Paris about the MorpheuS music generation project (8 April 2016)
- Dagstuhl seminar on Computational Music Structure Analysis (6 February 2016)
- Talk at ORBEL30 At the Catholic University of Louvain (UCL) (30 January 2016)
- Talk at Harvey-Mudd College (24 July 2015)