Music Generator Applying Markov Chain and Lagrange Interpolation
DOI:
https://doi.org/10.54097/hset.v39i.6538Keywords:
Markov Chain; Lagrange Interpolation; Music Generation; Nyquist.Abstract
Algorithmic composition is the process that composes music based on algorithms by formulating specific rules that incorporate relevant music arranging theory and assigning these rules to a suitable computer algorithm. One common approach is to use Markov models to generate note sequences. However, the generated notes do not consider the overall chord progression and the rhythmic pattern of the section, which is not effective when dealing with long multi-track music, especially for more structured works, e.g., classical and pop music. Therefore, this paper introduces an improved approach that uses Markov chains for chord generation, and then uses Lagrange Interpolation to generate melodies and accompaniments for multitrack customized instruments using chord progression notes as anchor points. In this study, only 30 common chord progressions and 30 rhythmic progressions were used as the input data to generate a sample music with cat sounds as the main melody, violins as the sub-melody, and pianos as the accompaniment. It eliminates the mentioned problems associated with the adoption of Markov chains for melodic composition. In this case, it allows for the creation of tonal music with an overall structural, multi-track approach, by using chord progressions as a guide to the melody and even the accompaniment, and by controlling the structural characteristics of the music through rhythmic patterns.
Downloads
References
McCormack Jon. Grammar based music composition. Complex systems, 1996, 96: 321-336.
Healey, Jennifer, Rosalind Picard, and Frank Dabek. A new a ect-perceiving interface and its application to personalized music selection. Proc. Wkshp on Perceptual User Interfaces,(San Francisco), 1998. Franklin, Judy A. "Recurrent neural networks for music computation." INFORMS Journal on Computing 18.3 (2006): 321-338.
Franklin J A. Recurrent neural networks for music computation. INFORMS Journal on Computing, 2006, 18(3): 321-338.
Hadjeres Gaëtan, and Frank Nielsen. Interactive music generation with positional constraints using anticipation-rnns. arXiv preprint arXiv:1709.06404, 2017.
Yang Li-Chia, Chou Szu-Yu, and Yang Yi-Hsuan. MidiNet: A convolutional generative adversarial network for symbolic-domain music generation. arXiv preprint arXiv:1703.10847, 2017.
Moore Jack Murdoch, Débora Cristina Corrêa, and Michael Small. Is Bach’s brain a Markov chain? Recurrence quantification to assess Markov order for short, symbolic, musical compositions. Chaos: An interdisciplinary journal of nonlinear science 2018, 28.8: 085715.
Verbeurgt Karsten, Michael Dinolfo, and Mikhail Fayer. Extracting patterns in music for composition via markov chains. International conference on industrial, engineering and other applications of applied intelligent systems. Springer, Berlin, Heidelberg, 2004.
Sauer Thomas, and Yuan Xu. On multivariate Lagrange interpolation. Mathematics of computation 1995, 64.211: 1147-1170.
Simoni Mary, and Roger B. Dannenberg. Algorithmic Composition: A Guide to Composing Music with Nyquist. University of Michigan Press, 2013.
Dannenberg R. Nyquist reference manual, 2008.
Downloads
Published
Issue
Section
License

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.







