Conway's Game of Life as a Musical Instrument
Vložit
- čas přidán 27. 05. 2024
- Using the most famous cellular automaton (Conway's Game of Life) to generate music.
We experiment with different note layouts and starting patterns to produce a variety of musical results.
0:00 Conway's Game of Life
1:38 Game of Life as a Musical Instrument
3:01 Thinning strategies
4:51 Midweight Spaceship (MWSS), harmonic minor
5:18 Heavyweight Spaceship (HWSS), major pentatonic
5:43 Glider, melodic minor (ascending)
6:12 Loafer, major scale
7:22 31P8H4V0, melodic minor (ascending)
8:00 Canada Goose, major scale
8:40 Table, major 13 chord
8:52 Table, major pentatonic
9:01 Twin Bees Shuttle Spark, melodic minor (ascending)
9:11 Z-hexomino, harmonic minor
9:30 Die hard, harmonic minor
10:17 Octagon 2, major scale
10:35 Pinwheel, major scale
10:55 Figure eight, melodic minor (ascending)
11:17 Pentadecathlon, major scale
11:40 T-tetromino, major scale
These visualizations were written in Java using the Processing graphical library (processing.org). The audio was generated using Java's built-in MIDI library (javax.sound.midi).
Life Lexicon: conwaylife.com/ref/lexicon/le...
________
Interested in learning more about algorithms, math, and how to program? Here are some useful and/or classic textbooks that I recommend (these are affiliate links, if you buy one, I get a small commission):
▶ “Algorithms” (4th Edition) by Robert Sedgewick & Kevin Wayne: amzn.to/3uo25xR
▶ “Effective Java” (3rd Edition) by Joshua Bloch: amzn.to/3HOnYJL
▶ “Design Patterns: Elements of Reusable Object-Oriented Software” by Erich Gamma, Richard Helm, Ralph Johnson, & John Vlissides: amzn.to/49fpr7R
▶ “Discrete Algorithmic Mathematics” by Stephen B. Maurer & Anthony Ralston: amzn.to/4bmsOvG
#music #math #cellularautomata #gameoflife #conway #computermusic #algorithmicmusic #algorithmiccomposition #patterns #algorithm #computerscience - Hudba
PLEASE turn this into an interactive website
I second this!!!
google cardinal...
Or atleast a program
Please
@@victork8708?
“What instrument do you play?”
“It’s complicated…”
Is conway's game of life an instrument?
@@paper177idk is mayonnaise?
@@fryzis horse radish?
Life. I play life.
Maybe I should just stick to playing euphonium…
“What instrument doth thou playeth”
“Life.”
“Life?”
“Life..”
I shall playeth thy musical instrument.
*Life.*
Roulx Kaard (deltarune) be like:
Cruelty squad ass comment
WHAT DOTH LIFE
Tis thy shall not comprehend the sound of which I make
i like loafer, it sounds very peaceful
especially when the bass notes mix in with the high notes 😔
It reminds me of Minecraft music for some reason.
Christmas-y almost
it would be cool to space them out differently so it’s not a note per beat
6:13 the loafer sounds the best to me, works really well as a 7/8 pattern
Oh yeah it is in 7 lol, i didnt notice. Octagon 2 is in 5
Reminds of something that could be in undertale, very toby fox
i love the repeating patterns the oscillators make, especially at 9:42, it would be cool to see a full song made using a lot of these patterns in combination like loops
uhhhh, die hard is a spark
@@therealelement75it has oscillators in it thats what they meant.
@@JaceFaller he put 9:42 in the comment, even though that's not an oscillator
Pattern loafer made me think of a walk through a claymation fall forest.
I really like the motif at 4:55, it sounds very Lavender Town esque.
You then get a happier version at 5:21
@@filedotjar4:55 is original Lavender Town bgm, 5:21 is Lavender Town in second gen games
Other ideas -
- it feels like we're arbitrarily picking an axis when we define the "strings" and "higher" notes, when the game doesn't really care what direction your objects are moving...
- so, maybe define the pitches that play based on the number of neighbors, e.g. if a cell has 0-1 neighbors it plays C
- could also define the pitches by the "direction" of the neighbors used to create a newborn cell
- could also define them recursively from the prior set of pitches that play, in an attempt to create cohesive melody lines
- play a note when a cell dies, not just when one is born
Yeah, it feels like the variance we're seeing is coming more from the stripey pattern underneath rather than the actual shapes moving across it.
Would be neat to see one based on the "speed" of movement, though I suppose that would be hard to measure,
@@recurvestickerdragonMaybe measure speed by how many generations a cell lives? You might have to play the simulation a fair amount ahead to find out though. At least depending on what you to with thay speed. Like, would it be a simple scale that goes up with each generation or a specific note based on how long the cell lives in the simulation that is played ahead?
How would you deal with a cell with an infinitely slow speed due to staying alive 100% of the time? There's always a chance of something else hitting it or never hitting it.
Can you PLEASE just make like. 3 hours of this or something I have insomnia and can never sleep I’m commenting this at 3AM I would fall asleep maybe within an hour with this thank you so so much for making this awesome video to begin with though!
yessss this
I second this, but because my cat really likes it a lot and has my play it 🥹 it makes her super calm
So, is life jazz?
Always has been
10:17 Is that a… 5/8 time signature loop? Geez…
Alternating 4/4 and 7/8 (or just 15/8) at 11:17
*5/4. It has 5 whole beats; a 5/8 would be more like lopsided 2 beats (one whole beat + one slightly longer beat), or a rushed 3 beats (2 whole beats + one half-beat).
Although, you can kind of feel it as a 5/8, with the 1st and 3rd beats emphasized.
i like how dramatic Z-hexomino sounded
My grandfather just died and my grandma is on the way out. This comforts me somehow.
i'm sorry for your loss
[Sending virtual hug...]
[Hug sent!]
Why talk about this here?
I never understand people who says private thing like this on CZcams?
Wtf is wrong with humanity?
This is about square making music, not a book about private life of random people
@@SkhalSaying that music is somehow comforting in their situation is related to the video. Also, people do it to vent. Caring about privacy is only necessary when there are people that can use the private information to do harm which is (unusually) not the case on the internet.
@@Skhal
It's a comment, a feeling or thought they had while watching the video
& music can often create feelings within people - sometimes comforting ones
and hey, it's always nice to get some words of comfort from strangers. When that happens, it actually shows the better part of humanity. That we can all unite together just to make someone we barely even know, but we know are struggling, feel a little better.
And, who knows. maybe someone out there is struggling with something similar and happened to click on the video and feels the same way-
It's also nice to know… that you're not alone.
Have you ever considered applying the circle of fifths for the layout?
I was thinking the same! Fifths on one axis, fourths on the other
fifths and major thirds would be great.
7:23 Stunningly complex sound. Amazing.
it's like running away while panicking
8:53 this actually sounds cool like if it were a melody to a song
It'd make a good ringtone
This is honestly million-dollar content. Keep going.
@ 5:48 -- You have invented the cyber-Bartok!
2:49 it's literally miracle musical dream sweet in sea major "children born in one emotion"
hello fellow miracle musical enjoyer
@@mrtomithy it warms my heart to see others who enjoy this project. May your days be many and you woes few
5:18 goes hard
Man, that harmonic minor die hard is haunting, I love it! It does seem like the synth volume is clipping quite a bit though, so it sounds a bit harsh. I'd love to hear a cleaner version!
Unreal. Love that one.
You could try mapping 2d to a scale using the Hilbert curve. Cells next to each other will tend to be close on the scale, but you would get occasional jumps and interesting intervals
id love to see this too
R-pentomino got robbed of a solo. Damn politics
Loafer is my favorite one here. I love the sound of it!
10:35 Hmm, that's a fancy way to play your A#maj9…
Amusingly, ironically, this reminds me quite a lot of the SPORE game soundtrack, specifically of the Cell Stage.
So many of these patterns sound like really interesting jazz compositions. I love this.
Loafer and table major pentatonic were bangers
I like heavy weight spaceship! 5:30
pinwheel even sounds like its name! the perfect name indeed!
Random ideas: 1) Use the number of non-triggering cells on a string as velocity 2) Langton's Ant :)
sounds like a soundtrack for an niche indie rpgmaker game
Phosphor from Oneshot :)
czcams.com/video/FtMKV6gNbSQ/video.htmlsi=njJVU7Xxjt3erRkZ
i've been a life enthusiast for some time now and I think this is a brilliant idea. I want to try every pattern with this, please do make an interactive website from this !
03:19 *Wow,so he's actually playing off of their positions!* I thought it was going to be him putting imagery of 'Life' together in synch with the music.
*So the 'Lifeforms' are essentially writing the music,without even realizing that's what they're doing.* Brilliant!!!
Die hard in harmonic minor was lit. 🔥 you make amazing videos man.
Loafer is one of the most beautiful things i think ive ever heard
My favorites were die hard, loafer and pentadecathlon, especially loafer, it feels like it's a real song
I love how the 2 notes on 5:50 glider look like they are swimming
Loafer sounded amazing!
8:52 this really reminds me of Fallen Down and scp 3008 theme, wow
I’ve been fascinated by the patterns the Game of Life makes for some time and yet this is the first time I saw it being used in such an unmodified state to output a signal like this. Lots to think on.
5:43 i feel like i just entered a woods area that's rumoured to be haunted by local npcs
die hard really lives up to its name
This is amazing. Would love to get my hands on this and play with it a little.
I think it would be cool to have a system in which cells that are not newborn continue to ring. This would create interesting drones in patterns that contain statics and moving objects.
This would be a great way to get inspiration for music. I can imagine some of these as video game tracks
The Pinwheel was beautiful
3 Blue 1 Brown did a video about using space filling curves to assign frequencies to visual data at different resolutions. I think that there's a really cool intersection of those ideas to be explored!
this is really cool! The detailed visuals is what makes it for me: colored tiles, tile labeling, generation counter, live 'piano', clear labeling. It no doubt took a lot of effort to code or edit the beautiful displays but as a viewer I find they make the video much more enjoyable!
7:23 im going to be honest, the figure looks like a butterfly
10:56 the figure eight reminds me of vs. susie from deltarune
similar note progression, just in a higher key
My favourite is at 10:19
This is a great concept
Loved the tables.
Life is music.
tru
If only John Conway could listen to this...
The Loafer in A Maj is surprisingly melodic.
dope concept!
This reminds me of The Secret of Mana from SNES.❤
I actually really like the sound of 3:10, it makes my head feel empty like brown noise.
You should change the scale every iteration around the circle of fifths so you get key changes that might resolve somewhere
great video!
8:53 i like this, give me some disney channel vibe
Someone needs to make this into a synth module, would make for a really interesting sequencer
oh my goodness gracious... i want to play with this so bad
Nice! It sounded better then I thought.
Awesome idea to turn the game of life into music. It sounds very interesting. I think it can be improved by adding rules for tempo / duration perhaps. But I already like it how it is
omg loafer sounds so good!
I really like listening to Conway West :D
canada goose sounds harmoniously chaotic, but good sounding
Loafer sounds really cool
When not thinned, it reminds me of music from Mr. Rogers Neighborhood.
What a minimalistic sound :)
Amazing! You should map rhythm next, simplest being a sustain with steady decay for the whole lifespan of the cell. You could also have a floor where a minimum lifespan yields a the shortest duration for a much sparser, less plodding texture (e.g. 3 generations = 16th note). The visuals would be overwhelming as binary on/off, but might be really cool with some fade in/fade out effects.
9:30 Die hard sounds like it can used as part of an OST of a spooky mystery game
It would be fun to have a program that takes a set of chords and tries to turn it into a conway pattern
This is so cool! If you revisit this, I think another fun way to lay out the grid would be a 12x12 with each row going up the circle of fifths and starting from the next note as you go up the column
3:08 - wake up, new INTERLOPER soundtrack just dropped
The loafer was beautiful :)
This is reaaally great content !
I think it would be cool to add strategies to have variations on the rythm ! That could make the thing more "musical"
Sound very scary and good 6:12
This recalls the Tarkus for me!
The pinwheel is my new favourite object.
As with most computer generated music tools, this works well to inspire and he a creative starting point.
But none of this sounds like music, that's where a human has to come in.
die hard sounds crazy tho
Most of this is not necessarily to make compositions, but to prove a point - that music in its purist form is a series of patterns, and we can use things like Conway's Game of Life to find unique patterns and apply them to our own understanding of music.
These would turn out really good with diminished chords as well, and maybe some way to stop neighbouring notes from playing, perhaps by keeping the neighbour note that is more popular. Thanks for sharing!
Id love to see someone use this to recreate pipular songs! Love the idea and the video ❤
Nice!
I wonder also how it would sound by also just keeping pressed notes that are pressed two generations in a row as an extra thinning strategy, that way we also could maybe get like long lasting chords or something and avoid every single note being always pressed at the same interval to vary the rythm
How about an alternative approach: instead of using Conway's Game of Life to act as an instrument that plays different sounds based on it's locality (space & time) of each iteration, how about having the application generate Cells in Conway's Game of Life based on reading an audio file either it being a wav, a midi, or even an mp3 type file. Then we can feed the game with a given piece of audio such as a song and see how it would look within the context of Conway's Game of Life. With something like this, the time it takes for each iteration to occur would depend on the tempo of intended audio segment. This would also be very interesting to see.
yeah because that's possible to implement 🤦♂️
So cool
My favorite ones:
9:31
8:01
5:18
This is very interesting
It would be really cool to integrate this into a eurorack module. Having Conway's Game of Life control your patch just sounds like an amazing recipe for generative music
this could be a piano piece, like the way each one sounds and blends into each other like movements, could be a piece about life itself
I would so love to have the ability to play with this myself, or even having the source being able to play with different parameters. This would be so cool
9:12 my absolute favourite
As someone with the last name of conway, I can confirm this is awesome
That recurring pattern is too catchy…
These sound especially good at 2x speed!
I think Die Hard is underappreciated, I loved that.
In today's "Obscure British Reference Mashup": This sounds like if Ian McDonald of King Crimson was asked to make interstitial music for an Oliver Postgate production
for the loafer, A major, highest newborn on string, the beginning gave crazy "amazing digital circus" vibes