摘要
针对计算机编曲受限于专业设备和演奏能力导致的高成本、低效率的问题,基于Mish文本作曲语言,采用Aar-dio编程语言及Scintilla编辑器控件,设计了面向计算机编曲的领域特定语言及其开发环境。首先分析了Mish的短板、领域特定语言及其开发环境的设计思想与主要构成;然后设计了乐曲语法规则,并以此为基础设计了以编译器和代码编辑器为核心的开发环境;最后以经典的卡农和弦进行为例进行了演示。经测试,该领域特定语言能够根据编写好的代码,自动生成可用于导入数字音频工作站进行二次编辑的通用MIDI文件,提高编曲效率和灵活性。
Aiming at the high cost and low efficiency of computer arrangement due to the limitations of professional equipment and performance ability,based on the Mish text composition language,using Aardio programming language and Scintilla editor con-trol,a domain specific language and its development environment for computer arrangement are designed.First,the shortcomings of Mish,the design ideas and main components of the domain specific language and its development environment are analyzed.Then the music grammar rules,and the development environment that mainly includes a compiler and a code editor based on the rules are designed.Finally,the classic Canon chord progression is demonstrated as an example.The domain specific language has been test-ed and proved to be able to automatically generate general MIDI files that can be imported into the digital audio workstation for sec-ondary editing according to the written code,which improves the efficiency and flexibility of arrangement.
作者
任崇浩
张继军
REN Chonghao;ZHANG Jijun(College of Information Science and Engineering,Shandong Agricultural University,Taian 271018)
出处
《计算机与数字工程》
2024年第5期1442-1448,共7页
Computer & Digital Engineering
关键词
音乐编程
计算机编曲
音乐制作
自动伴奏
领域特定语言
music programming
computer arrangement
music production
automatic accompaniment
domain specific lan-guage