[Paper Review] A variational autoencoder for music generation controlled by tonal tension
This paper proposes a variational autoencoder (VAE) for controllable music generation by integrating two tonal tension measures—cloud diameter and tensile strain—based on the Spiral Array theory. By conditioning the latent space with scaled tension direction and level vectors, the model generates music variations that preserve rhythm while altering pitch content to match desired tension profiles, enabling precise control over musical tension in generated pieces.
Many of the music generation systems based on neural networks are fully autonomous and do not offer control over the generation process. In this research, we present a controllable music generation system in terms of tonal tension. We incorporate two tonal tension measures based on the Spiral Array Tension theory into a variational autoencoder model. This allows us to control the direction of the tonal tension throughout the generated piece, as well as the overall level of tonal tension. Given a seed musical fragment, stemming from either the user input or from directly sampling from the latent space, the model can generate variations of this original seed fragment with altered tonal tension. This altered music still resembles the seed music rhythmically, but the pitch of the notes are changed to match the desired tonal tension as conditioned by the user.
Motivation & Objective
- To develop a controllable music generation system that allows users to shape the tonal tension in generated music.
- To integrate two tonal tension measures—cloud diameter and tensile strain—into a deep generative model for fine-grained control.
- To preserve rhythmic structure while modifying pitch content to match user-defined tension profiles.
- To enable generation of coherent, long-form musical variations by conditioning on latent space vectors representing tension direction and level.
- To explore the impact of tension control on musical coherence and perceptual quality in generated fragments.
Proposed method
- The model uses a conditional variational autoencoder (VAE) architecture with a latent space conditioned by tension-related vectors.
- Two tonal tension measures—cloud diameter (dissonance-based) and tensile strain (key-distance-based)—are computed from musical fragments using the Spiral Array theory.
- A four-bar monophonic melody-bass fragment is extracted from MIDI files, transposed to C major or A minor for consistent key reference.
- Tension feature vectors (e.g., tensile strain direction, cloud diameter level) are scaled and added to the latent space to modulate output tension.
- The model is trained on 44,900 four-bar fragments from 3,457 pop MIDI files, with pitch and tension features extracted via Midi-Miner.
- Generated music maintains rhythmic structure of the seed but alters pitch content to match the desired tension profile.
Experimental results
Research questions
- RQ1Can a VAE model be effectively conditioned to generate music with user-defined tonal tension profiles?
- RQ2To what extent can the model preserve rhythmic structure while modifying pitch content to match tension targets?
- RQ3How do different tension feature vectors (e.g., tensile strain vs. cloud diameter) affect the resulting tension shape and pitch distribution?
- RQ4Can the model generate coherent, long-form musical variations by sequentially applying tension vectors to latent representations?
- RQ5Does incorporating tension-aware features improve the perceptual quality and pitch distribution of generated music?
Key findings
- Adding a scaled tensile strain direction vector to the latent space increases the proportion of music with upward tension trends, with a 70% upward ratio in generated samples.
- The cloud diameter direction vector has a stronger influence on the tensile strain upward ratio than the tensile strain direction vector, indicating a hierarchical relationship in their effects.
- Pitch distribution shifts significantly: C and G notes decrease in frequency, while A, E, and D notes increase in prominence under tensile strain upward conditioning.
- The model successfully generates music with complex tension shapes, such as \diagup\diagdown or \diagdown\diagup, by using custom-shaped tension vectors.
- Incorporating the tensile strain feature reduces bass pitch loss, improving pitch accuracy in generated music.
- The system enables coherent, multi-fragment music generation by sequentially applying tension vectors to the latent space of a seed fragment.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.