Back to search

University of Alberta

Enhancing Code Completion for Computer Musicians: A Dataset and Predictive Model for Pure Data

Abstract

dc:description.abstract

Pure Data (PD), a widely used visual programming language (VPL) in computer music, lacks robust code completion tools that are essential for enhancing usability and improving the user experience. While code completion tools are prevalent in textual programming languages, there is a gap in research on visual code completion for graph-based VPLs like PD, particularly regarding the selection of appropriate objects (nodes) and connections (edges) in specific contexts to enhance the user experience. PD's unique graph-based structure is fundamentally different from the linear nature of textual programming languages, making existing textual code completion tools unsuitable for computer musicians, and highlighting the need for a dedicated visual code completion solution. To address this gap in visual code completion, this thesis introduces TriGraph, a graph-based probabilistic model that predicts nodes and edges in PD graphs, providing an effective support tool for computer musicians. To develop TriGraph, we created a publicly available PD dataset by analyzing 6,534 projects from GitHub, then trained and evaluated 5 TriGraph models using statistical analysis of 1-node, 2-node, and 3-node subgraph frequencies to predict unknown nodes and edges in PD graphs. We also compared the performance of TriGraph with an n-gram-based KenLM model to assess the effectiveness of our graph-based approach. Our evaluations indicate that our TriGraph model achieves an average Mean Reciprocal Rank (MRR) score of 0.39 for node prediction, outperforming the KenLM model, and an average MRR score of 0.57 for edge prediction, placing the correct answer within the top 2-3 suggestions. Additionally, our analysis of the PD dataset revealed that most PD projects are small and simple, with few nodes, connections, and revisions, and are typically developed by a single author, with minimal changes made between successive revisions. This work significantly advances the field of computer music by providing improved support for PD users through the visual code completion model and a comprehensive dataset, helping both academic researchers and computer musicians navigate the complexities of visual programming languages more efficiently, and enhancing practical development in computer music.

Degree

thesis:*
Name thesis:degree_name
Master of Science
Level thesis:degree_level
Master's
Grantor
University of Alberta
Year dc:date.issued
2025

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Islam, Anisha
Advisor dc:contributor.advisor
  • Hindle, Abram (Computing Science)

Subjects

dc:subject × 6

Rights

dc:rights
Statement dc:rights
  • This thesis is made available by the University of Alberta Library with permission of the copyright owner solely for non-commercial purposes. This thesis, or any portion thereof, may not otherwise be copied or reproduced without the written consent of the copyright owner, except to the extent permitted by Canadian copyright law.
Language dc:language.iso
en

Identifiers

dc:identifier.*
DOI dc:identifier.doi
https://doi.org/10.7939/81757

Chain of custody

source
Harvested from
University of Alberta
Base URL
era.library.ualberta.ca/oai
Last updated
2026-11-26
Source record
OAI-PMH GetRecord
citation

Islam, Anisha. Enhancing Code Completion for Computer Musicians: A Dataset and Predictive Model for Pure Data. Master's thesis, University of Alberta, 2025. https://doi.org/10.7939/81757