Abstract
Deep learning architecture has become a cutting-edge method for automatic music generation, but there are still problems such as loss of music style and music structure. This paper presents an improved network structure of time series model based on multi-track music. A context generator is added to the traditional architecture. The context generator is responsible for generating cross-track contextual music features between tracks. The purpose is to better generate single-track and multi-track music features and tunes in time and space. A modified mapping model was further added to further modify the prediction results. Experiments show that compared with traditional methods, the proposed will partially improve the objective music evaluation index results.
Introduction
While deep learning has achieved remarkable success in generating images and text, symbolic music generation—particularly multitrack compositions—remains a complex challenge. Multitrack music requires high-level coordination between various instruments (e.g., drums, bass, piano) to maintain both vertical harmony and horizontal structural coherence. Traditional models often struggle with two primary issues: the "loss of style," where the composition drifts away from its intended genre, and "structural collapse," where individual tracks fail to align rhythmically or harmonically. This research proposes an enhanced time-series network model designed to address these structural deficiencies by introducing cross-track awareness.
Methodology
The proposed architecture builds upon the foundation of MuseGAN, a popular framework for symbolic music generation. To improve the relationship between tracks, the model incorporates two novel components:
- Context Generator: Positioned between the time-structure and bar generators, this component is specifically tasked with generating cross-track contextual features. By treating the relationship between tracks as a learnable feature, it ensures that the melody, harmony, and rhythm of different instruments remain contextually relevant to one another in both time and space.
- Modified Mapping Model: This layer acts as a post-processing refinement step. It maps the raw predicted results from the generators to a set of musically "correct" or standard results, effectively serving as a sanity check to ensure the output adheres to standard musical structures.
The complete pipeline processes random noise vectors through a mixing model, followed by hierarchical generation stages, culminating in the refined output from the mapping model.
Experimental Results
The model was evaluated using a large-scale dataset of MIDI files containing detailed style tags, pitch, and tempo information. Performance was measured using objective metrics, including Qualified Rhythm Frequency (QRF) and Consecutive Pitch Repetitions (CPR).
The results indicate that the improved model outperforms traditional two-generator architectures in several key areas. Specifically, the "Corpus" and "Duration" scores for QRF saw notable increases, suggesting that the generated music feels more substantial and structurally sound.
Interestingly, the "Beat" indicator for QRF showed a slight decrease (0.89 vs 0.90). This suggests a trade-off where the increased complexity of the context generator may slightly interfere with the rigid rhythmic pulse of the beat. In terms of pitch repetition (CPR), the model showed improved stability in the "Duration" metric, indicating a better ability to hold or repeat notes in a human-like manner.
Conclusion
By integrating a context generator and a modified mapping layer, this research successfully enhances the structural and stylistic consistency of multitrack music generation. While the model shows a slight trade-off in rhythmic precision, the overall improvements in harmony and structural duration are significant. Future work will focus on fine-tuning the context generator to preserve rhythmic "pulse" while maintaining harmonic depth, as well as conducting subjective human listening tests to validate these objective improvements.
Summary updated