I ( tried ) to code a music generator...

  Рет қаралды 785

Winkzoh

Winkzoh

Күн бұрын

Using python libraries , my basic knowledge of scales, time signatures and music theory, and Markov chains ( a branch of maths called stochastic, or so I'm told ), I tried to create a midi file generator.
The main goal of this project was to make a tool that could quickly produce ambient background music for things like videos and indie games.
The project is still very much a work in progress but I wanted to share what I had so far in the hopes I'd get some suggestions on what to do in the future.
I do eventually plan on creating a GUI and making all of this code publicly accessible and completely free to use.

Пікірлер: 26
@jamiesonjones
@jamiesonjones 4 күн бұрын
The KZbin algorithm about to cook with this one
@jamiesonjones
@jamiesonjones 4 күн бұрын
Okay but seriously I really enjoyed this, I hope it takes off!
@Winkzoh
@Winkzoh 3 күн бұрын
Thank you! Even just the support so far has really helped motivate me.
@liokit
@liokit 4 күн бұрын
I tried something similar to this before but it completely failed, you did such a good job with it! Nice work. One criticism is that it's a tad quiet at the beginning of the track, but I doubt that'd be difficult to fix.
@Winkzoh
@Winkzoh 3 күн бұрын
Yeah the base concepts are actually pretty simple, but making it seem rhythmic and melodic is something I'm still working on haha. I agree the track was too quiet, that's totally down to me being a terrible producer. Thank you so much for the feedback it really helps!
@Me-sv2xe
@Me-sv2xe 4 күн бұрын
Well made ! I love the illustrations and the approach
@Winkzoh
@Winkzoh 4 күн бұрын
Thank you so much! I'm still getting used to the whole video making process.
@BooBar2521
@BooBar2521 3 күн бұрын
Nice project. Did you ever thought about generative Ai. Maybe to mimic a certain genre style. This sounded more like classic or choir
@Winkzoh
@Winkzoh 2 күн бұрын
Thank you! I have been looking into how I'd create a small neural network and things like, for my projects I usually try to avoid using things that already exist.
@BooBar2521
@BooBar2521 2 күн бұрын
@@Winkzoh as a computer scientist I would suggest you look into Autoencoder. I found your idea to encode music pretty nice. Won't it be a pretty nice project to generate new classic music or some other electronic music without text
@duytdl
@duytdl 4 күн бұрын
I LIKE WHAT YOU GOT. GOOD JOB 🗿
@Winkzoh
@Winkzoh 4 күн бұрын
Thank you! Even since uploading this video the code now produces much more realistic and rhythmic music.
@mambo5431
@mambo5431 4 күн бұрын
this is cool!
@Winkzoh
@Winkzoh 4 күн бұрын
I'm glad you think so!
@levinglatz9472
@levinglatz9472 3 күн бұрын
Nice video and result! You could try the markov chains with song lyrics
@Winkzoh
@Winkzoh 3 күн бұрын
Thank you! I do have some more complicated code for things like lyrics. I've been thinking about how I'd produce vocal melodies by combining them both.
@yunarad0ki
@yunarad0ki 3 күн бұрын
that's so fucking cool i love my youtube algorithm
@Winkzoh
@Winkzoh 2 күн бұрын
Thank you!
@Khantia
@Khantia 3 күн бұрын
Here I was expecting a jumbled mess of random notes, with no rhythm, but for some reason it wasn't that :D
@marcostrada290
@marcostrada290 3 күн бұрын
Damn, good good job
@dilutioncreation1317
@dilutioncreation1317 3 күн бұрын
considering space a "note" of its own is a smart idea! Which songs did you feed it to create the probability charts?
@Winkzoh
@Winkzoh 2 күн бұрын
It's crazy but I made the weightings just based on my music experience, definitely not the fastest way to do it. I do have some code that can convert music into probability charts, I'm just still trying to find the best way to do it in bulk.
@LasWegas
@LasWegas 4 күн бұрын
This is crazy!
@devinmcmanus
@devinmcmanus 3 күн бұрын
It's an interesting idea and I definitely think you're on to something. However, the example doesn't sound very musical to my ears. Can you feed the program a chord progression and have it generate a melody to fit the chords?
@Winkzoh
@Winkzoh 3 күн бұрын
That's very interesting you say that, that's exactly what I'm working on right now! You're right that the different tracks need to be "aware" of each other otherwise you get what is essentially a bunch of melodies over each other. Once I've got it all working I plan to make a new video with all the other features I've added too.
@devinmcmanus
@devinmcmanus 3 күн бұрын
@@Winkzoh Awesome! Can't wait to see it.
Mandelbrot's Evil Twin
7:47
2swap
Рет қаралды 722 М.
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН
I Made The Ultimate Cheating Device
9:39
ChromaLock
Рет қаралды 1,9 МЛН
Running "Hello World!" in 10 FORBIDDEN Programming Languages
18:07
LoRF-Ha: AI can see you through walls
15:18
SkimoBen
Рет қаралды 17 М.
The secret behind constants
18:04
MAKiT
Рет қаралды 99 М.
Inside the V3 Nazi Super Gun
19:52
Blue Paw Print
Рет қаралды 3,2 МЛН
Making a Game About Weak Points
21:27
Emis
Рет қаралды 1,1 МЛН
How Your Brain Chooses What to Remember
17:19
Artem Kirsanov
Рет қаралды 391 М.
Retro MS-DOS Coding - Recreating the Iconic Award BIOS Screen
18:16
NCOT Technology
Рет қаралды 126 М.
But what are Hamming codes? The origin of error correction
20:05
3Blue1Brown
Рет қаралды 2,5 МЛН
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН