Research Article

Algorithmic Composition with Random Walk and Quantization Based on Nyquist

Corry He Luo*
Beijing National Day School, Beijing, China

* Corresponding author: [email protected]

Abstract

Algorithmic composition is the use of automated processes in music composition as a means of removing human intervention from the compositional process. Many composers throughout history have experimented with diverse approaches, with or without the computer. This STUDY is an exploration of the potentials of random walk in music composition using the Nyquist IDE. While random walks possess inherent limitations, such as their unbounded range, they can generate sequences of pitches that resemble melodies with constraints applied. According to the analysis, linear functions were particular effective in shaping melodic contours. Pitches deviating from the established chord progression were quantized to maintain consonance. A worked example inspired by Canon in D illustrates how this approach can generate distinctive harmonic textures, highlighting its creative potential. This model holds relevance across diverse musical contexts, from real-time improvisation for multimedia to collaborative composition and performance, offering artists a tool for inspiration and an accessible means of composition.

Keywords: Algorithmic composition; random walk; quantization; Nyquist.
Published: June 13, 2025
DOI: 10.54254/2755-2721/2025.TJ23813
Volume: ACE Vol.166
pp. 117-123
Download PDF

References

  1. Doornbusch, P. (2010) Algorithmic composition: Paradigms of automated music generation. Computer Music Journal, 34(3), 70-74.
  2. Edwards, M. (2011) Algorithmic composition: computational thinking in music. Communications of the ACM, 54(7), 58-67.
  3. Alpern, A. (1995) Techniques for algorithmic composition of music. Hampshire. 95, 120.
  4. Braguinski, N. (2019) 428 Millions of Quadrilles for 5s. 6d.: John Clinton's Combinatorial Music Machine. 19th-Century Music, 43(2), 86–98.
  5. Civit, M., Civit-Masot, J., Cuadrado, F. and Escalona, M.J. (2022) A systematic review of artificial intelligence-based music generation: Scope, applications, and future trends. Expert Systems with Applications, 209, 118190.
  6. Yang, W., Shen, L., Huang, C.F., Lee, J., Zhao, X. (2024) Development status, frontier hotspots, and technical evaluations in the field of ai music composition since the 21st century: A systematic review. IEEE Access.
  7. Codling, E.A., Plank, M.J. and Benhamou, S. (2008) Random walk models in biology. Journal of the Royal Society Interface, 5(25), 813–834.
  8. Yuan, Z., Wang, Q., and Yang, H. (2024) Multi-Scale HyperGraph Node Embedding via Random Walking for Music Recommendation," 2024 5th International Conference on Artificial Intelligence and Computer Engineering (ICAICE), Wuhu, China, 179-182.
  9. Nguyen, P. and Tsabary, E. (2022) Random walks on Neo-Riemannian spaces: Towards generative transformations. Ai music creativity.
  10. Nyquist Reference Manual. Retrieved from https://www.cs.cmu.edu/~rbd/doc/nyquist/