arrow
Return

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

delete2022-03-29
delete3
PRE
AI
S
Shipra Shukla *
H
Haider Banka
DOI:10.1007/s11042-022-12185-8delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
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.
Keywords:
Computer music
Genetic algorithm
Bresenham's line algorithm
Melody
Rhythm
Music composition

Journal

Multimedia Tools and Applications cover
Multimedia Tools and Applications
IF:
3
Papers:
1.9W
Citations:
3.2W

Organization

I
indian institute of technology system (iit system)
Scholars:
9.5W
Papers: 9.9W
Citations: 93