Grammar-based automated music composition in Haskell

Donya Quick, P. Hudak
{"title":"Grammar-based automated music composition in Haskell","authors":"Donya Quick, P. Hudak","doi":"10.1145/2505341.2505345","DOIUrl":null,"url":null,"abstract":"Few algorithms for automated music composition are able to address the combination of harmonic structure, metrical structure, and repetition in a generalized way. Markov chains and neural nets struggle to address repetition of a musical phrase, and generative grammars generally do not handle temporal aspects of music in a way that retains a coherent metrical structure (nor do they handle repetition). To address these limitations, we present a new class of generative grammars called Probabilistic Temporal Graph Grammars, or PTGG's, that handle all of these features in music while allowing an elegant and concise implementation in Haskell. Being probabilistic allows one to express desired outcomes in a probabilistic manner; being temporal allows one to express metrical structure; and being a graph grammar allows one to express repetition of phrases through the sharing of nodes in the graph. A key aspect of our approach that enables handling of harmonic and metrical structure in addition to repetition is the use of rules that are parameterized by duration, and thus are actually functions. As part of our implementation, we also make use of a music-theoretic concept called chord spaces.","PeriodicalId":88474,"journal":{"name":"El Farmaceutico","volume":"31 1","pages":"59-70"},"PeriodicalIF":0.0000,"publicationDate":"2013-09-28","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"35","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"El Farmaceutico","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/2505341.2505345","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 35

Abstract

Few algorithms for automated music composition are able to address the combination of harmonic structure, metrical structure, and repetition in a generalized way. Markov chains and neural nets struggle to address repetition of a musical phrase, and generative grammars generally do not handle temporal aspects of music in a way that retains a coherent metrical structure (nor do they handle repetition). To address these limitations, we present a new class of generative grammars called Probabilistic Temporal Graph Grammars, or PTGG's, that handle all of these features in music while allowing an elegant and concise implementation in Haskell. Being probabilistic allows one to express desired outcomes in a probabilistic manner; being temporal allows one to express metrical structure; and being a graph grammar allows one to express repetition of phrases through the sharing of nodes in the graph. A key aspect of our approach that enables handling of harmonic and metrical structure in addition to repetition is the use of rules that are parameterized by duration, and thus are actually functions. As part of our implementation, we also make use of a music-theoretic concept called chord spaces.
基于语法的Haskell自动作曲
很少有自动作曲算法能够以一般化的方式处理和声结构、格律结构和重复的组合。马尔可夫链和神经网络难以处理乐句的重复,生成语法通常不能以保持连贯的韵律结构的方式处理音乐的时间方面(也不能处理重复)。为了解决这些限制,我们提出了一类新的生成语法,称为概率时态图语法(Probabilistic Temporal Graph grammars,简称PTGG),它处理音乐中的所有这些特征,同时允许在Haskell中实现优雅而简洁的实现。概率性允许人们以概率的方式表达期望的结果;时间允许一个人表达韵律结构;作为一个图语法允许人们通过图中节点的共享来表达短语的重复。除了重复之外,我们处理和声和韵律结构的方法的一个关键方面是使用由持续时间参数化的规则,因此实际上是函数。作为实现的一部分,我们还使用了一个叫做和弦空间的音乐理论概念。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信