University of Minnesota
Applications Of Algorithmic Music Generation Using Machine Learning Models In Python
Abstract
dc:description.abstractMachine learning has transformed predictive modeling across domains, including music. However, current algorithmic music generation models struggle to produce coherent and expressive melodies because they lack harmonic context and operate on limited low-level features. This study investigates how adding harmonic and structural predictors to recurrent neural network architectures can address this problem. Using recurrent neural networks trained on a diverse corpus of musical compositions, the study extends beyond pitch and duration prediction by progressively adding features. Experimental results show that models incorporating harmonic context through chord and interval predictors achieve smoother melodic flow and improved melody generation. Treble-clef predictions (≈40–60% accuracy) were less precise than bass-clef predictions (≈50%–80%), reflecting the greater variability of melodic lines. Duration accuracies remained consistently high (≈78%), demonstrating the models’ ability to capture rhythmic structure. Introducing relative pitch prediction improves note accuracy but removes the ability to predict chords. Qualitative listening tests show that models with a balanced number of predictors produce more musically coherent results, while too few or too many reduce generalization and increase error. These findings suggest that relatively simple recurrent architectures, when provided with harmonic information, can learn tonal relationships and rhythmic phrasing without explicit music-theoretical rules. The work highlights both the promise and current limitations of neural network approaches to computational composition and provides a foundation for future research using transformer-based models and richer expressive features.
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Nieters, Eric
Subjects
dc:subject × 12Rights
- Language dc:language.iso
- en
Identifiers
dc:identifier.*- Dc Identifier Citation
- Nieters, Eric. (2025). Applications Of Algorithmic Music Generation Using Machine Learning Models In Python. Retrieved from the University Digital Conservancy, https://hdl.handle.net/11299/279191.