Главная
Study mode:
on
1
Intro
2
Harmonization task
3
What we'll build
4
Get the code
5
Main function: First pass
6
Example generation
7
MelodyData
8
GeneticMelodyHarmonizer
9
Generate
10
Initialise population
11
Select parents
12
Create new population
13
Crossover
14
Mutate
15
FitnessEvaluator
16
Chord melody congruence
17
Chord variety
18
Harmonic flow
19
Functional harmony
20
Main function: Second pass
21
Exploring the code further...
22
What's up next?
Description:
Implement a genetic algorithm in Python to automatically generate melody harmonizations. Dive into the intricacies of genetic algorithms applied to music composition, exploring concepts such as population initialization, parent selection, crossover, mutation, and fitness evaluation. Learn how to create a MelodyData class, develop a GeneticMelodyHarmonizer, and implement various fitness criteria including chord-melody congruence, chord variety, harmonic flow, and functional harmony. Follow along with code examples, gain insights into the main function's structure, and discover how to further explore and expand upon the provided code for advanced melody harmonization techniques.

Melody Harmonization with Genetic Algorithms - Generative Music AI Course

Valerio Velardo - The Sound of AI
Add to list