{"id":{"repo_id":"alberta","oai_identifier":"oai:ualberta.scholaris.ca:123456789/102975"},"canonical_url":"https://search.ndltd.org/etd/alberta/oai:ualberta.scholaris.ca:123456789/102975","repository":{"repo_id":"alberta","name":"University of Alberta","base_url":"https://era.library.ualberta.ca/oai"},"display":{"title":"Enhancing Code Completion for Computer Musicians: A Dataset and Predictive Model for Pure Data","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.","abstract_html":"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&#x27;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.","abstract_has_math":false,"creators":["Islam, Anisha"],"institution":"University of Alberta","degree_name":"Master of Science","degree_level":"Master's","degree_discipline":null,"degree_department":null,"school":null,"contributors":[],"advisors":["Hindle, Abram (Computing Science)"],"committee_chairs":[],"committee_members":[],"year":2025,"date_issued":"2025-06","date_published":"2025-06","updated_at":"2026-11-26T21:05:53Z","subjects":["Visual Programming Language","Pure Data","Probabilistic Models","Graph Analysis","Code Completion","End-User Programmers"],"languages":["en"],"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."],"rights_urls":["https://creativecommons.org/licenses/by-nd/4.0/"],"identifier_entries":[],"person_identifier_entries":[]},"links":{"outbound_url":"https://doi.org/10.7939/81757","outbound_label":"DOI","outbound_source":"dc:identifier.doi","record_url":"https://doi.org/10.7939/81757","record_label":"Repository record","record_kind":"doi","record_source":"dc:identifier.doi","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Aalberta%3Aoai%3Aualberta.scholaris.ca%3A123456789%2F102975","prefix":"oai_dc"},"source_record":{"url":"https://era.library.ualberta.ca/oai?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Aualberta.scholaris.ca%3A123456789%2F102975","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Hindle, Abram (Computing Science)"]},{"key":"dc:creator","label":"Author","values":["Islam, Anisha"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2025-06-12T18:21:51Z"]},{"key":"dc:date.issued","label":"Date","values":["2025-06"]},{"key":"dc:type","label":"Dc Type","values":["Thesis"]},{"key":"thesis:degree_level","label":"Degree Level","values":["Master's"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Master of Science"]},{"key":"thesis:institution_name","label":"Thesis Institution Name","values":["University of Alberta"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["Visual Programming Language","Pure Data","Probabilistic Models","Graph Analysis","Code Completion","End-User Programmers"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en"]},{"key":"dc:rights","label":"Dc Rights","values":["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."]},{"key":"dc:rights.uri","label":"Rights URI","values":["https://creativecommons.org/licenses/by-nd/4.0/"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.doi","label":"DOI","values":["https://doi.org/10.7939/81757"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["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."]},{"key":"dc:title","label":"Title","values":["Enhancing Code Completion for Computer Musicians: A Dataset and Predictive Model for Pure Data"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:contributor.advisor":["Hindle, Abram (Computing Science)"],"dc:creator":["Islam, Anisha"],"dc:date.accessioned":["2025-06-12T18:21:51Z"],"dc:date.issued":["2025-06"],"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."],"dc:identifier.doi":["https://doi.org/10.7939/81757"],"dc:language.iso":["en"],"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."],"dc:rights.uri":["https://creativecommons.org/licenses/by-nd/4.0/"],"dc:subject":["Visual Programming Language","Pure Data","Probabilistic Models","Graph Analysis","Code Completion","End-User Programmers"],"dc:title":["Enhancing Code Completion for Computer Musicians: A Dataset and Predictive Model for Pure Data"],"dc:type":["Thesis"],"others:access_status":["open.access"],"thesis:degree_level":["Master's"],"thesis:degree_name":["Master of Science"],"thesis:institution_name":["University of Alberta"]},"updated_at":"2026-11-26T21:05:53Z"}