Musikla: Language for Generating Musical Events

Authors Pedro Miguel Oliveira da Silva , José João Almeida

Thumbnail PDF


  • Filesize: 0.55 MB
  • 16 pages

Document Identifiers

Author Details

Pedro Miguel Oliveira da Silva
  • Departamento de Informática, Universidade do Minho, Braga, Portugal
José João Almeida
  • Algoritmi, Departamento de Informática, Universidade do Minho, Braga, Portugal

Cite AsGet BibTex

Pedro Miguel Oliveira da Silva and José João Almeida. Musikla: Language for Generating Musical Events. In 9th Symposium on Languages, Applications and Technologies (SLATE 2020). Open Access Series in Informatics (OASIcs), Volume 83, pp. 6:1-6:16, Schloss Dagstuhl – Leibniz-Zentrum für Informatik (2020)


In this paper, we'll discuss a simple approach to integrating musical events, such as notes or chords, into a programming language. This means treating music sequences as a first class citizen. It will be possible to save those sequences into variables or play them right away, pass them into functions or apply operators on them (like transposing or repeating the sequence). Furthermore, instead of just allowing static sequences to be generated, we'll integrate a music keyboard system that easily allows the user to bind keys (or other kinds of events) to expressions. Finally, it is important to provide the user with multiple and extensible ways of outputing their music, such as synthesizing it into a file or directly into the speakers, or writing a MIDI or music sheet file. We'll structure this paper first with an analysis of the problem and its particular requirements. Then we will discuss the solution we developed to meet those requirements. Finally we'll analyze the result and discuss possible alternative routes we could've taken.

Subject Classification

ACM Subject Classification
  • Computing methodologies → Language resources
  • Domain Specific Language
  • Music Notation
  • Interpreter
  • Programming Language


  • Access Statistics
  • Total Accesses (updated on a weekly basis)
    PDF Downloads


  1. Sam Aaron. Sonic pi – performance in education, technology and art. International Journal of Performance Arts and Digital Media, 12(2):171-178, 2016. URL:
  2. Samuel Aaron, Dominic A. Orchard, and Alan F. Blackwell. Temporal semantics for a live coding language. In FARM '14, 2014. Google Scholar
  3. The abc music standard - the tune body, December 2011. URL:
  4. General midi 1 sound set. URL:
  5. Guido Gonzato. Making music with abc 2, 2019. Google Scholar
  6. Gareth Loy. Musicians make a standard: the midi phenomenon. Computer Music Journal, 9:8-26, 1985. Google Scholar
  7. James McCartney. Rethinking the computer music language: Supercollider. Computer Music Journal, 26(4):61-68, 2002. URL:
  8. Bob Nystrom. Crafting interpreters, 2020. Google Scholar
  9. Yann Orlarey, Dominique Fober, and Stéphane Letz. FAUST : an Efficient Functional Approach to DSP Programming. In Editions DELATOUR FRANCE, editor, New Computational Paradigms for Computer Music, pages 65-96. HAL, 2009. URL:
  10. Pep 255 - simple generators., May 2001.
  11. Quantization music. URL:
  12. Ge Wang, Perry R. Cook, and Spencer Salazar. Chuck: A strongly timed computer music language. Computer Music Journal, 39(4):10-29, 2015. URL:
Questions / Remarks / Feedback

Feedback for Dagstuhl Publishing

Thanks for your feedback!

Feedback submitted

Could not send message

Please try again later or send an E-mail