Introduction
Generating music that maintains long-term coherence remains a significant challenge in artificial intelligence. While probabilistic models excel at local transitions, they often fail to preserve thematic motifs or follow a deliberate emotional arc over an entire piece. MorpheuS addresses this by framing music composition as a constrained optimization problem, integrating mathematical models of tonal tension with pattern-detection algorithms to generate structured polyphonic music.
System Architecture
The MorpheuS framework operates on a template-based approach, ensuring that the generated output inherits the structural DNA of existing masterpieces. As illustrated in the system flowchart, the process begins with a MusicXML template.
The system employs a three-pillared methodology:
- Pattern Detection: Using compression-based algorithms like COSIATEC, the system identifies recurring motifs and their transpositions. These are treated as hard constraints during generation.
- Tonal Tension Modeling: The system quantifies the "emotional narrative" using geometric models.
- Optimization: A Variable Neighborhood Search (VNS) metaheuristic iteratively assigns pitches to the template's rhythm to minimize the difference between the generated tension and a target profile.
Tonal Tension and the Spiral Array
To quantify the feeling of the music, MorpheuS utilizes the Spiral Array, a 3D geometric model of tonality. This model allows the system to calculate three specific tension metrics that guide the optimization process.
These metrics include:
- Cloud Diameter: A measure of tonal dispersion or dissonance within a set of notes.
- Cloud Momentum: The tonal distance between consecutive groups of notes, representing the rate of harmonic change.
- Tensile Strain: The distance between the current set of notes and the global key of the piece, measuring how far the music has "wandered" from its tonal home.
Optimization and Results
Unlike generative models that predict the next note based on probability, MorpheuS starts with a random pitch assignment and uses VNS to "evolve" the piece. By treating pattern repetition as a mandatory constraint, the system ensures that the long-term structure remains intact.
The effectiveness of this approach is evidenced by the system's ability to match target tension profiles with correlation coefficients as high as 0.999. Furthermore, the optimization is computationally efficient; the system optimized a Kabalevsky piece in 136 seconds and a complex Rachmaninov excerpt in under nine minutes on standard hardware. Qualitative evaluations by expert musicians noted that the AI often made "bold" or "humorous" harmonic choices, a result of its objective-driven rather than rule-following nature.
Conclusion and Future Work
MorpheuS demonstrates that optimization-based approaches can successfully bridge the gap between local harmony and global structure. However, the authors identify playability as a key area for improvement, as the system occasionally generates sequences that are physically awkward for human performers. Future research will explore hybrid models that combine these structural constraints with deep learning to ensure more idiomatic note-to-note transitions.
Summary updated