Melody generation and optimization with genetic algorithm
2025
0 views
0 downloads
Advisor: Doç. Dr. Abdullah Elen ; Dr. Öğr. Üyesi Fahrettin Burak Demir
Abstract (EN)
Music composition has been a significant area of human creativity for centuries, and recent advancements in computer technology have led to the widespread adoption of Automatic Music Composition. Within this field, Genetic Algorithms (GAs), inspired by natural selection, stand out as a powerful technique for finding optimal or near-optimal solutions in vast search spaces. However, the subjective nature of music and the difficulty of objectively evaluating best music complicate the design of the GA's fitness function. This thesis aimed to empirically investigate the potential of using Genetic Algorithms to generate and optimize musically meaningful and aesthetically pleasing melodies by addressing these challenges. This thesis designed and implemented a GA-based system including an appropriate chromosome structure to represent melodies, genetic operators (selection, crossover, mutation) to manipulate musical structures, and a rule-based fitness function based on music theory principles. The effects of different population sizes (100, 200, 300) and tournament selection sizes (3, 5) on algorithm performance (convergence speed, fitness values) and the musical qualities of generated melodies were examined. The findings indicated that GAs can generate musically meaningful melodies with appropriate design and parameters. Larger populations demonstrated the potential to increase diversity and achieve higher final fitness values, while larger tournament sizes could lead to faster convergence but risked reducing diversity. The use of multiple musical criteria in the fitness function was found to improve output quality and help reduce repetition. In conclusion, GAs can be considered as interactive assistants supporting the creative process in music composition.
Author
Fatih Yadıgar
How to Cite
Fatih Yadıgar (Master Thesis). Melody generation and optimization with genetic algorithm, 2025, Bandırma Onyedi Eylül University.
Keywords
License
Tüm Hakları Saklıdır
This work is shared under the specified license terms.
More theses from Bandırma Onyedi Eylül University
- Socio-economic and demographic status of the Balya district according to the Dividend and Population Books of 1840 (H.1256)(Alidemirci, Bengiler, Çamavşarı, Doğanlar, Habibler, Kadıhisar, Kayalar, Mancılık, Orhanlar, Yaylacık villages)(2022)
- Socio-economic and demographic structure of Yörükan communities in balya district according to temettuat and population regi̇sters dated 1840 (H.1256)(2022)
- The relationship of between dating violence attitudes with child rearing attitudes and transactional analysis ego states(2024)
- Change in Turkey's internal security governance, new regulations, structures, and practises in the process of combating seperatist terrorism(2025)
- The mediating role of intercultural sensitivity in the relationship between cultural intelligence and burnout among nurses caring for patients from diverse cultural backgrounds(2025)
- Evaluation of private pension companies performance on private pension funds in Turkey(2018)
