Coding the 12 Days of Christmas in Python

  Рет қаралды 6,908

Marc Evanstein / music․py

Marc Evanstein / music․py

Күн бұрын

Пікірлер: 21
@DaveLeCompte
@DaveLeCompte 11 ай бұрын
And now, we can generate 365 days of Christmas in one huge MIDI file, suitable for playing at the malls year-round. ;)
@fyfhgvjh1_0935
@fyfhgvjh1_0935 10 ай бұрын
more like 365 or 366 generic days and all of the festivals and holidays
@archietheproto7706
@archietheproto7706 10 ай бұрын
It'll just be playing the same tone 365 times 😂
@cameron6464
@cameron6464 10 ай бұрын
You scratch the desire my brain holds for unfiltered static noise.
@GilbertBotham
@GilbertBotham 10 ай бұрын
Just found your channel. Thank you for this, I never even realized the 2-4th day change after 5 golden rings! Could you do the muppet version for next year??
@SimpleDIYElectroMusicProjects
@SimpleDIYElectroMusicProjects 11 ай бұрын
Love it. Fantastic stuff. Of course technically, there are two flavours of the generic phrases too... seven and eleven have an extra note to play :) And for authenticity the "five gold rings" has to get slower and louder each iteration, whilst the remaining verses always accelerate at a greater rate to compensate!? Apart from the final phrase of course which has to slow down at such a rate as to hint at the final sense of relief felt from reaching the end! Kevin
@danielrhouck
@danielrhouck 10 ай бұрын
The nth day phrase should also change for 7 and 11. And the way I’ve always heard it, the acceleration is deliberate but then the whole last day is normal speed, not just the final phrases.
@danielrhouck
@danielrhouck 10 ай бұрын
1:15 I don’t think that’s true. The melodies for the phone-using (depending on version) birds, French birds, and AtLA reptilebirds are always different because they don’t fit the generic nouns-a-verbing form.
@danielrhouck
@danielrhouck 10 ай бұрын
Oh, also, someone (Knuth) wrote a thing on computational complexity of songs. 12 Days of Christmas is quadratic, 99 Bottles of Beer on the Wall is linear, etc.
@pleabargain
@pleabargain 10 ай бұрын
Fascinating! Thank you for making the connection between programming, math and music so clear. I'll check your channel for studies on circles of fifth and chord progressions.
@anon746912
@anon746912 10 ай бұрын
I love it too. Was just thinking the other day about how to make a program to automate the writing of the lyrics
@alexreinking
@alexreinking 10 ай бұрын
I think you would find the idea of Kolmogorov complexity fascinating... it's a measurement of information complexity equal to the size of the smallest Turing machine (shortest program) that produces exactly that information. This video shows an upper bound on the Kolmogorov complexity of this song.
@marcevanstein
@marcevanstein 10 ай бұрын
Thank you for identifying that term for me! That is exactly what I was doing.
@alexreinking
@alexreinking 10 ай бұрын
@@marcevanstein Happy to help! I just discovered your channel today and, as a CS researcher and amateur musician, am really enjoying your videos!
@javiernunez7255
@javiernunez7255 10 ай бұрын
XD the code at the thumbnail is like: repeat 12 times a Christmas Day
@noxus6428
@noxus6428 2 ай бұрын
@@javiernunez7255 Phyton code
@VanVlearMusic
@VanVlearMusic 10 ай бұрын
Awesome
@donaldhobson8873
@donaldhobson8873 10 ай бұрын
def f(x): return [(i,1.) if i>0 else (-i,.5) for i in x] Use the fact that almost all of the notes have length 0.5 or 1, and the pitches are positive. Need a +[(65,3)] in a couple of places.
@Edited_Comment
@Edited_Comment 10 ай бұрын
You're gonna blow up man
@JJschannel255
@JJschannel255 11 ай бұрын
Cool
@thedoomkiller3178
@thedoomkiller3178 10 ай бұрын
But does the turtle gave to you pizza with pepperoni ?
Can ChatGPT write a Good Beat?
13:39
Marc Evanstein / music․py
Рет қаралды 38 М.
My Insanely Convoluted Process of Composing a Violin Piece with ChatGPT
25:54
Marc Evanstein / music․py
Рет қаралды 16 М.
ТВОИ РОДИТЕЛИ И ЧЕЛОВЕК ПАУК 😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 5 МЛН
ТЮРЕМЩИК В БОКСЕ! #shorts
00:58
HARD_MMA
Рет қаралды 2,5 МЛН
小路飞还不知道他把路飞给擦没有了 #路飞#海贼王
00:32
路飞与唐舞桐
Рет қаралды 86 МЛН
Perfect Pitch Challenge? Easy! 🎤😎| Free Fire Official
00:13
Garena Free Fire Global
Рет қаралды 99 МЛН
Langton's Loops: The cellular automaton that copies itself
12:01
davbrdavbr
Рет қаралды 517 М.
Running "Hello World!" in 10 FORBIDDEN Programming Languages
18:07
The Rhythm of The Primes #some2
10:12
Marc Evanstein / music․py
Рет қаралды 883 М.
Actually, Maybe There's Only 1 Game of Tic-Tac-Toe
11:58
Marc Evanstein / music․py
Рет қаралды 1,1 МЛН
I Made a 32-bit Computer Inside Terraria
15:26
From Scratch
Рет қаралды 3,9 МЛН
I never understood why you can't go faster than light - until now!
16:40
FloatHeadPhysics
Рет қаралды 3,8 МЛН
Being Competent With Coding Is More Fun
11:13
TheVimeagen
Рет қаралды 116 М.
How *do* these circles make their music?
11:18
Marc Evanstein / music․py
Рет қаралды 3,4 М.
Can a Bunch of Circles Play Für Elise?
10:27
Marc Evanstein / music․py
Рет қаралды 255 М.
ТВОИ РОДИТЕЛИ И ЧЕЛОВЕК ПАУК 😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 5 МЛН