Monophonic music composition using genetic algorithm and Bresenham's line algorithm

被引:3
作者
Shukla, Shipra [1 ]
Banka, Haider [1 ]
机构
[1] IIT ISM Dhanbad, Dept Comp Sci & Engn, Dhanbad, Bihar, India
关键词
Computer music; Genetic algorithm; Bresenham's line algorithm; Melody; Rhythm; Music composition;
D O I
10.1007/s11042-022-12185-8
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Music composition is one of the oldest artistic pursuits. The role of machine in automatic generation of creative artworks, like music, is still an explorable area. In this paper, a new approach for music composition is proposed that differs from previous methods of generating music with predefined musical parameters. The proposed method gives flexibility to change the musical parameters, namely time signature, range and scale. Moreover, the user can also input any desired motif (a short piece of melody) and generate a melody that includes the motif. The type of music composed in this work is monophonic, which includes melody and rhythm. To create a proper sequence of notes, we used genetic algorithm with suitably formulated crossover and mutation operators. The rhythm is generated using Bresenham's line drawing algorithm, which has been modified to adapt different time signature with changing beats. PySynth, a simple music synthesizer, is chosen to convert music into wave file format. In the end, a comparative analysis is conducted to show the efficacy of the proposed model. Results show that the proposed algorithm performs better than conventional genetic algorithm.
引用
收藏
页码:26483 / 26503
页数:21
相关论文
共 39 条
[1]  
Acampora G, 2011, IEEE INT CONF FUZZY, P202
[2]  
Agarwala N., 2017, Music Composition using Recurrent Neural Networks
[3]  
[Anonymous], 2017, ARXIV171204371
[4]  
[Anonymous], 2016, ARXIV160607251
[5]  
[Anonymous], 1994, ICMC
[6]   ALGORITHM FOR COMPUTER CONTROL OF A DIGITAL PLOTTER [J].
BRESENHAM, JE .
IBM SYSTEMS JOURNAL, 1965, 4 (01) :25-30
[7]   Automatic composition of happy melodies based on relations [J].
Cao, Xizheng ;
Sun, Lin ;
Niu, Jingwen ;
Wu, Ruiqi ;
Liu, Yanmei ;
Cai, Huijuan .
MULTIMEDIA TOOLS AND APPLICATIONS, 2015, 74 (21) :9097-9115
[8]   A self-defining game for one player: On the nature of creativity and the possibility of creative computer programs [J].
Cohen, H .
LEONARDO, 2002, 35 (01) :59-64
[9]  
Cope David., 1996, EXPT MUSICAL INTELLI, V12
[10]  
Costa EO, 2006, PROC INT C TOOLS ART, P10