TunesFormer:通过小节补丁借助控制码生成爱尔兰曲调
TunesFormer: Forming Irish Tunes with Control Codes by Bar Patching
AI总结:
本研究提出基于Transformer的双解码器模型TunesFormer,通过小节补丁和控制码技术,在21万余首爱尔兰曲调上训练,实现高效可控的符合指定音乐形式的旋律生成,为音乐创作提供新工具。
摘要:
本文介绍了TunesFormer,这是一种高效的基于Transformer的双解码器模型,专门用于生成符合用户定义音乐形式的旋律。该模型在214122首爱尔兰曲调上训练,采用了小节补丁(bar patching)和控制码等技术。小节补丁可缩短序列长度并减少生成时间,控制码则引导TunesFormer生成符合预期音乐形式的旋律。评估结果显示,TunesFormer效率优异,速度是GPT-2的3.22倍,是同等规模线性复杂度模型的1.79倍,同时在可控性及其他指标上表现相当。该模型为音乐家、作曲家和音乐爱好者探索爱尔兰音乐的广阔领域提供了新工具。模型和代码可在https://github.com/sander-wood/tunesformer获取。
英文摘要:
This paper introduces TunesFormer, an efficient Transformer-based dual-decoder model specifically designed for the generation of melodies that adhere to user-defined musical forms. Trained on 214,122 Irish tunes, TunesFormer utilizes techniques including bar patching and control codes. Bar patching reduces sequence length and generation time, while control codes guide TunesFormer in producing melodies that conform to desired musical forms. Our evaluation demonstrates TunesFormer's superior efficiency, being 3.22 times faster than GPT-2 and 1.79 times faster than a model with linear complexity of equal scale while offering comparable performance in controllability and other metrics. TunesFormer provides a novel tool for musicians, composers, and music enthusiasts alike to explore the vast landscape of Irish music. Our model and code are available at https://github.com/sander-wood/tunesformer.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。