Towards Real-time Score Analysis in PWGL

  • Mika Kuuskankare Pesquisador Independente


In this paper, we introduce an original approach to computerized music analysis within the graphical computer-assisted composition environment called PWGL. Our aim is to facilitate the realtime analysis of interactive scores written in common Western music notation. To this end, we have developed a novel library that allows us to analyze scores realized with the help of ENP (the graphical music notation module of PWGL), and to visualize the results of the analysis in realtime. ENP is extended to support the display of supplementary information that can be drawn on top of the score as an overlay. The analysis backend is realized with the help of our builtin musical scripting language based on pattern matching. The analysis results are presented directly as a part of the original score leveraging the extensible and interactive visualization capabilities of ENP. In this paper we describe the current state of the library and present, as a case study, a fully functional application allowing for the realtime analysis and display of voice leading errors according to the counterpoint rules developed mainly in the Renaissance and Baroque eras.

Palavras-chave: Computational Musicology, Real-time Interactive Systems, Software Systems and Languages for Sound and Music


Miller Puckette. Using Pd as a score language. In Proceedings of International Computer Music Conference, pages 184–187, 2002.

Jean Bresson and Carlos Agon. Visual programming and music score generation with openmusic. In IEEE Symposium on Visual Languages and Human-Centric Computing, 2011.

Han-Wen Nienhuys and Jan Nieuwenhuizen. LilyPond, a system for automated music engraving. In XIV Colloquium on Musical Informatics (XIV CIM 2003), Firenze, Italy, 2003.

Mikael Laurson, Mika Kuuskankare, and Vesa Norilo. An Overview of PWGL, a Visual Programming Environment for Music. Computer Music Journal, 33(1):19–31, 2009.

Mika Kuuskankare and Mikael Laurson. Expressive Notation Package. Computer Music Journal, 30(4):67–79, 2006.

Mikael Laurson, Mika Kuuskankare, and Kimmo Kuitunen. Introduction to computer-assited music analysis in PWGL. In Sound and Music Computing ’05, 2005.

Mikael Laurson, Mika Kuuskankare, and Kimmo Kuitunen. The Visualisation of Computer-assisted Music Analysis Information in PWGL. Journal of New Music Research, 37(1):61–76, 2008.

Mika Kuuskankare. Schenkerian analysis tools in ENP. In Proceedings International Computer Music Conference, 2013.

Mika Kuuskankare and Craig Sapp. Visual Humdrum-library for PWGL. In Proceedings of ISMIR, 2013.

Mika Kuuskankare and Mikael Laurson. Intelligent Scripting in ENP using PWConstraints. In Proceedings of International Computer Music Conference, pages 684–687, Miami, USA, 2004.

Mikael Laurson. PWConstraints. In G. Haus and I. Pighi, editors, X Colloquio di Informatica Musicale, pages 332– 335, Milano, 1993. Associazione di Informatica Musicale Italiana.

David Huron. Music information processing using the Humdrum Toolkit: Concepts, examples, and lessons. Computer Music Journal, 26(2):15–30, 2002.
KUUSKANKARE, Mika. Towards Real-time Score Analysis in PWGL. In: SIMPÓSIO BRASILEIRO DE COMPUTAÇÃO MUSICAL (SBCM), 18. , 2021, Recife. Anais [...]. Porto Alegre: Sociedade Brasileira de Computação, 2021 . p. 45-49. DOI: