An Algebra for Tree-Based Music Generation

  • Frank Drewes
  • Johanna Högberg
Part of the Lecture Notes in Computer Science book series (LNCS, volume 4728)


We present an algebra whose operations act on musical pieces, and show how this algebra can be used to generate music in a tree-based fashion. Starting from input which is either generated by a regular tree grammar or provided by the user via a digital keyboard, a sequence of tree transducers is applied to generate a tree over the operations provided by the music algebra. The evaluation of this tree yields the musical piece generated.


Input Tree Tree Language Chromatic Scale Musical Piece Tree Transducer 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.


  1. [Ame89]
    Ames, C.: The Markov process as a compositional model: a survey and tutorial. Leonardo 22(2), 175–187 (1989)CrossRefMathSciNetGoogle Scholar
  2. [Aza05]
    Azab, K.: Macro tree transducers in Treebag. Master thesis, Department of Computing Science, Umeå University (2005),
  3. [Bar83]
    Baroni, M.: The concept of musical grammar. Music Analysis 2(2), 175–208 (1983)CrossRefGoogle Scholar
  4. [BDPV94]
    Bresin, R., Poli, G.D., Vidolin, A.: A neural networks based system for automatic performance of musical scores. In: Proc. 1993 Stockholm Music Acoustic Conference, Royal Swedish Academy of Music, Stockholm, pp. 74–78 (1994)Google Scholar
  5. [BELM04]
    Burraston, D., Edmonds, E., Livingstone, D., Miranda, E.R.: Cellular automata in MIDI-based computer music (2004)Google Scholar
  6. [Bha88]
    Bharucha, J.: Neural net modeling of music. In: Proc. First Workshop on Artificial Intelligence and Music, American Association for AI, pp. 173–182 (1988)Google Scholar
  7. [Cha03]
    Chapel, R.H.: Realtime algorithmic music systems from fractals and chaotic functions: toward an active musical instrument. PhD thesis, Univ. Pompeu Fabra, Barcelona (2003)Google Scholar
  8. [CV01]
    Chai, W., Vercoe, B.: Folk music classification using hidden Markov models. In: Proc. Int. Conference on Artificial Intelligence (2001)Google Scholar
  9. [Dre06]
    Drewes, F.: Grammatical Picture Generation – A Tree-Based Approach. Texts in Theoretical Computer Science. An EATCS Series. Springer, Heidelberg (2006)zbMATHGoogle Scholar
  10. [Eng97]
    Engelfriet, J.: Context-free graph grammars. In: Handbook of Formal Languages. Beyond Words, vol. 3, pp. 125–213. Springer, New York (1997)Google Scholar
  11. [EV85]
    Engelfriet, J., Vogler, H.: Macro tree transducers. Journal of Computer and System Sciences 31(1), 71–146 (1985)zbMATHCrossRefMathSciNetGoogle Scholar
  12. [FV98]
    Fülöp, Z., Vogler, H.: Syntax-Directed Semantics: Formal Models Based on Tree Transducers. Monographs in Theoretical Computer Science. An EATCS Series. Springer, Heidelberg (1998)zbMATHGoogle Scholar
  13. [GS97]
    Gécseg, F., Steinby, M.: Tree languages. In: Rozenberg, G., Salomaa, A. (eds.) Handbook of Formal Languages. Beyond Words, ch. 1, vol. 3, pp. 1–68. Springer, Heidelberg (1997)Google Scholar
  14. [HG91]
    Horner, A., Goldberg, D.E.: Genetic algorithms and computer-assisted music composition. In: Proc. Fourth Int. Conference on Genetic Algorithms, San Diego, CA, pp. 437–441 (1991)Google Scholar
  15. [Hög05]
    Högberg, J.: Wind in the willows – generating music by means of tree transducers. In: Farré, J., Litovsky, I., Schmitz, S. (eds.) CIAA 2005. LNCS, vol. 3845, pp. 153–162. Springer, Heidelberg (2006)CrossRefGoogle Scholar
  16. [Jac95]
    Jacob, B.: Composing with genetic algorithms. In: Proc. ICMC, pp. 452–455 (1995)Google Scholar
  17. [Jur06]
    Jurish, B.: Music as a formal language. In: Zimmer, F. (ed.) Bang | Pure data, Wolke Verlag (2006)Google Scholar
  18. [Moo72]
    Moorer, J.A.: Music and computer composition. Commun. ACM 15(2), 104–113 (1972)CrossRefGoogle Scholar
  19. [Moz94]
    Mozer, M.: Neural network music composition by prediction: exploring the benefits of psychoacoustic constraints .... Connection-Science 6(2), 247–280 (1994)CrossRefGoogle Scholar
  20. [Pru86]
    Prusinkiewicz, P.: Score generation with L-systems. In: Berg, P. (ed.) Proc. ICMC, Royal Conservatory, The Hague, Netherlands, vol. 1, pp. 455–457 (1986)Google Scholar
  21. [SB07]
    Sorensen, A., Brown, A.: Introduction to jMusic. Internet resource. (Accessed 27 Feb 2007), available at
  22. [SXK04]
    Shao, X., Xu, C., Kankanhalli, M.S.: Unsupervised classification of music genre using hidden Markov model. In: Proc. ICME, pp. 2023–2026 (2004)Google Scholar
  23. [Tod91]
    Todd, P.M: A connectionist approach to algorithmic composition. Computer Music Journal 13(4), 27–43 (1991)CrossRefGoogle Scholar
  24. [TON06]
    Tojo, S., Oka, Y., Nishida, M.: Analysis of chord progression by HPSG. In: AIA 2006: Proc. 24th IASTED International Conference on Artificial Intelligence and Applications, pp. 305–310. ACTA Press (2006)Google Scholar
  25. [Vis04]
    Visell, Y.: Spontaneous organisation, pattern models, and music. Organised Sound  (2004)Google Scholar
  26. [WS05]
    Worth, P., Stepney, S.: Growing music: musical interpretations of L-systems. In: EvoWorkshops, pp. 545–550 (2005)Google Scholar

Copyright information

© Springer-Verlag Berlin Heidelberg 2007

Authors and Affiliations

  • Frank Drewes
    • 1
  • Johanna Högberg
    • 1
  1. 1.Department of Computing Science, Umeå University, S–90187 UmeåSweden

Personalised recommendations