Genetic Algorithm in Python generates Music (code included)
Can AI learn how to generate or make music? Let's find out. In this video, I implemented a genetic algorithm in python to create a bunch of melodies that will be put together to compose a song in Ableton. You could say I programmed an AI music generator in python. But instead of using a neural network, I went with a genetic algorithm.
I will show you how I used evolution with a genetic algorithm to compose a piece of music. You will see the different stages of my program with all the successes and failures while coding it and generating this composition.
Check out my newest video: https://youtu.be/LW1i-axSoYE
? Support me: https://www.patreon.com/kiecodes
Questions of the day
■ What else would you like me to try to generate using a genetic algorithm?
If you want to learn more about genetic algorithms check out my other videos:
■ What is a genetic algorithm? - https://youtu.be/uQj5UNhCPuo
Genetic Algorithm from Scratch in Python - https://youtu.be/nhT56blfRpE
GitHub: https://github.com/kiecodes/generate-music
Follow me here:
www.facebook.com/kiecodes
www.instagram.com/kiecodes
? SOME OF MY FAVORITE BOOKS:
As an Amazon Associate I earn from qualifying purchases through the links below.
■ Ego is the Enemy by Ryan Holiday: https://amzn.to/3hQLjwJ
■ Deep Work by Cal: Newport: https://amzn.to/3hRyW3B
■ Atomic Habits by James Clear: https://amzn.to/3p0ODrW
■ Clean Code: https://amzn.to/3s1JMsn
■ The Clean Coder: https://amzn.to/38lKHft
■ Clean Architecture: https://amzn.to/394bcVU
■ The Pragmatic Programmer: https://amzn.to/2XfisJ2
■ Test-Driven Development by Example: https://amzn.to/3bfNzfL
■ The Art of Computer Programming: https://amzn.to/3hQUzRJ
■ Design Patterns: https://amzn.to/2Ld09Sh
■ Refactoring: https://amzn.to/396NHLP
■ The Mythical Man-Month: https://amzn.to/3hPB1Ng
■ Working Effectively with Legacy Code: https://amzn.to/2XhOiF5
■ Introduction to Algorithms: https://amzn.to/3bhWflQ
■ Extreme Programming Explained: https://amzn.to/3hS37Yc
? MY GEAR:
As an Amazon Associate I earn from qualifying purchases through the links below.
■ Coding Headphones: https://amzn.to/3s2gYAc
■ Mobile Headphones: https://amzn.to/2Xfhs7K
■ Monitor: https://amzn.to/2JPrVnc
■ Keyboard: https://amzn.to/396MG6t
■ Trackpad: https://amzn.to/3olgrqA
■ Camera: https://amzn.to/3s0R13R
■ LED Lights: https://amzn.to/39a1r8x
■ Tripod: https://amzn.to/35hoNYG
■ Speaker: https://amzn.to/395x97a
■ Studio Headphones for Editing: https://amzn.to/2LcgtCX
■ Audio Interface: https://amzn.to/2JRAC0l
Timestamps:
00:00 Intro
00:41 The Idea
01:26 How to generate sound in Python
02:16 The genome
03:28 The fitness function
04:12 Adding rhythm
04:52 Adding scales
05:20 Exporting to MIDI and the first test in Ableton
05:48 Generating chords
06:31 Generating two layers and letting them play together
07:06 Timelapse of generating all the parts for the song
09:20 Finished result
---
This video contains advertising content.
---
#python #machinelearning #geneticalgorithms
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Genetic Algorithm in Python generates Music (code included)», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.