Conway's Game of Life as a Musical Instrument

Sdílet
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

Komentáře • 354

  • @fossfeen
    @fossfeen Před měsícem +1464

    PLEASE turn this into an interactive website

  • @aelius5
    @aelius5 Před měsícem +607

    “What instrument do you play?”
    “It’s complicated…”

    • @paper177
      @paper177 Před 27 dny +6

      Is conway's game of life an instrument?

    • @fryz
      @fryz Před 27 dny +2

      @@paper177idk is mayonnaise?

    • @666thmoab
      @666thmoab Před 25 dny +1

      @@fryzis horse radish?

    • @jay31415
      @jay31415 Před 23 dny +1

      Life. I play life.

    • @RailsofForney
      @RailsofForney Před 15 dny

      Maybe I should just stick to playing euphonium…

  • @user-vh1tb8ch2u
    @user-vh1tb8ch2u Před 27 dny +376

    “What instrument doth thou playeth”
    “Life.”
    “Life?”
    “Life..”

  • @confused-as-ell
    @confused-as-ell Před měsícem +211

    i like loafer, it sounds very peaceful

    • @paper177
      @paper177 Před 20 dny

      especially when the bass notes mix in with the high notes 😔

    • @jacksongreen4107
      @jacksongreen4107 Před 16 dny +4

      It reminds me of Minecraft music for some reason.

    • @juliatorre8803
      @juliatorre8803 Před 12 dny +1

      Christmas-y almost

    • @baructort
      @baructort Před 11 dny

      it would be cool to space them out differently so it’s not a note per beat

  • @ssserani
    @ssserani Před měsícem +107

    6:13 the loafer sounds the best to me, works really well as a 7/8 pattern

    • @prismix0870
      @prismix0870 Před 29 dny +4

      Oh yeah it is in 7 lol, i didnt notice. Octagon 2 is in 5

    • @stoffer108
      @stoffer108 Před 7 dny

      Reminds of something that could be in undertale, very toby fox

  • @cobaltbluesky2276
    @cobaltbluesky2276 Před měsícem +172

    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

    • @therealelement75
      @therealelement75 Před 22 dny +2

      uhhhh, die hard is a spark

    • @JaceFaller
      @JaceFaller Před 6 dny

      ​@@therealelement75it has oscillators in it thats what they meant.

    • @therealelement75
      @therealelement75 Před 5 dny

      @@JaceFaller he put 9:42 in the comment, even though that's not an oscillator

  • @CastleKale
    @CastleKale Před měsícem +208

    Pattern loafer made me think of a walk through a claymation fall forest.

  • @filedotjar
    @filedotjar Před měsícem +115

    I really like the motif at 4:55, it sounds very Lavender Town esque.

    • @filedotjar
      @filedotjar Před měsícem +11

      You then get a happier version at 5:21

    • @anderaginaga2
      @anderaginaga2 Před měsícem +9

      ​@@filedotjar4:55 is original Lavender Town bgm, 5:21 is Lavender Town in second gen games

  • @TheCloudyoshi
    @TheCloudyoshi Před měsícem +95

    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

    • @recurvestickerdragon
      @recurvestickerdragon Před 27 dny +12

      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,

    • @Jeff-ss6qt
      @Jeff-ss6qt Před 13 dny +2

      ​​​@@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.

  • @pixelcore5417
    @pixelcore5417 Před měsícem +72

    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!

    • @eggsbox
      @eggsbox Před měsícem +4

      yessss this

    • @linkshadow2
      @linkshadow2 Před 15 dny +5

      I second this, but because my cat really likes it a lot and has my play it 🥹 it makes her super calm

  • @roachroachin7193
    @roachroachin7193 Před 13 dny +38

    So, is life jazz?

  • @PCBoyStudios
    @PCBoyStudios Před měsícem +53

    10:17 Is that a… 5/8 time signature loop? Geez…

    • @sleepyheadmemes
      @sleepyheadmemes Před 13 dny +2

      Alternating 4/4 and 7/8 (or just 15/8) at 11:17

    • @Gelatinocyte2
      @Gelatinocyte2 Před 10 dny

      *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.

  • @farofa9999
    @farofa9999 Před 2 dny +2

    i like how dramatic Z-hexomino sounded

  • @kschumacher5533
    @kschumacher5533 Před měsícem +79

    My grandfather just died and my grandma is on the way out. This comforts me somehow.

    • @obonyxiam
      @obonyxiam Před měsícem +12

      i'm sorry for your loss

    • @AJLord
      @AJLord Před 29 dny +9

      [Sending virtual hug...]
      [Hug sent!]

    • @Skhal
      @Skhal Před 29 dny +7

      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

    • @arnoudh6203
      @arnoudh6203 Před 29 dny +19

      ​@@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.

    • @gjk-arts5855
      @gjk-arts5855 Před 28 dny +8

      @@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.

  • @gilejoksimovic3168
    @gilejoksimovic3168 Před měsícem +30

    Have you ever considered applying the circle of fifths for the layout?

    • @sam_bamalam
      @sam_bamalam Před 19 dny +4

      I was thinking the same! Fifths on one axis, fourths on the other

    • @kuretaxyz
      @kuretaxyz Před 12 dny +1

      fifths and major thirds would be great.

  • @linearstream
    @linearstream Před 24 dny +8

    7:23 Stunningly complex sound. Amazing.

    • @xpotential
      @xpotential Před 13 dny

      it's like running away while panicking

  • @SquishmallowsUnited
    @SquishmallowsUnited Před měsícem +28

    8:53 this actually sounds cool like if it were a melody to a song

  • @BlackMoonMaster
    @BlackMoonMaster Před měsícem +55

    This is honestly million-dollar content. Keep going.

  • @michaeldeloatch7461
    @michaeldeloatch7461 Před měsícem +32

    @ 5:48 -- You have invented the cyber-Bartok!

  • @dzek_thefriend
    @dzek_thefriend Před 27 dny +5

    2:49 it's literally miracle musical dream sweet in sea major "children born in one emotion"

    • @mrtomithy
      @mrtomithy Před 11 dny +1

      hello fellow miracle musical enjoyer

    • @dzek_thefriend
      @dzek_thefriend Před 11 dny +1

      @@mrtomithy it warms my heart to see others who enjoy this project. May your days be many and you woes few

  • @benjames9158
    @benjames9158 Před 28 dny +7

    5:18 goes hard

  • @kostibulished
    @kostibulished Před měsícem +10

    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!

  • @jonahbranch5625
    @jonahbranch5625 Před měsícem +18

    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

  • @dion8895
    @dion8895 Před 28 dny +17

    R-pentomino got robbed of a solo. Damn politics

  • @veryvaughsome5867
    @veryvaughsome5867 Před 26 dny +9

    Loafer is my favorite one here. I love the sound of it!

  • @PCBoyStudios
    @PCBoyStudios Před měsícem +8

    10:35 Hmm, that's a fancy way to play your A#maj9…

  • @Thaumh
    @Thaumh Před 14 dny +2

    Amusingly, ironically, this reminds me quite a lot of the SPORE game soundtrack, specifically of the Cell Stage.

  • @glenmorrison8080
    @glenmorrison8080 Před 28 dny +6

    So many of these patterns sound like really interesting jazz compositions. I love this.

  • @donaldcreswell4915
    @donaldcreswell4915 Před 13 dny +3

    Loafer and table major pentatonic were bangers

  • @awesomedixdam106
    @awesomedixdam106 Před 24 dny +2

    I like heavy weight spaceship! 5:30

  • @jasonscrazyshows8598
    @jasonscrazyshows8598 Před 3 dny +1

    pinwheel even sounds like its name! the perfect name indeed!

  • @JavaJack59
    @JavaJack59 Před 28 dny +6

    Random ideas: 1) Use the number of non-triggering cells on a string as velocity 2) Langton's Ant :)

  • @Germancheesecakefactory
    @Germancheesecakefactory Před 27 dny +2

    sounds like a soundtrack for an niche indie rpgmaker game

    • @lslime1545
      @lslime1545 Před 2 dny

      Phosphor from Oneshot :)
      czcams.com/video/FtMKV6gNbSQ/video.htmlsi=njJVU7Xxjt3erRkZ

  • @laurentmarcoux2144
    @laurentmarcoux2144 Před 10 dny +1

    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 !

  • @jeffreyohler2599
    @jeffreyohler2599 Před 3 dny

    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!!!

  • @thegeeeeeeeeee
    @thegeeeeeeeeee Před 10 dny +1

    Die hard in harmonic minor was lit. 🔥 you make amazing videos man.

  • @demi_ryka1306
    @demi_ryka1306 Před dnem

    Loafer is one of the most beautiful things i think ive ever heard

  • @Rapidfire370
    @Rapidfire370 Před měsícem +4

    My favorites were die hard, loafer and pentadecathlon, especially loafer, it feels like it's a real song

  • @ImpossibleEvan
    @ImpossibleEvan Před 24 dny +4

    I love how the 2 notes on 5:50 glider look like they are swimming

  • @mr_flor
    @mr_flor Před 17 dny +1

    Loafer sounded amazing!
    8:52 this really reminds me of Fallen Down and scp 3008 theme, wow

  • @dizfoster8726
    @dizfoster8726 Před 20 dny +1

    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.

  • @gbjsyzftbcacjyfubjygkgcjae3182

    5:43 i feel like i just entered a woods area that's rumoured to be haunted by local npcs

  • @PaulPlaystheLegend
    @PaulPlaystheLegend Před 7 dny +1

    die hard really lives up to its name

  • @spoonnerz
    @spoonnerz Před měsícem +3

    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.

  • @CptSDX23
    @CptSDX23 Před 22 dny +2

    This would be a great way to get inspiration for music. I can imagine some of these as video game tracks

  • @epsilonthedragon1249
    @epsilonthedragon1249 Před 24 dny +2

    The Pinwheel was beautiful

  • @sam_bamalam
    @sam_bamalam Před 19 dny +1

    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!

  • @jickhertz4124
    @jickhertz4124 Před 25 dny +1

    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!

  • @Bluecuartzjuega
    @Bluecuartzjuega Před 2 dny +1

    7:23 im going to be honest, the figure looks like a butterfly

  • @AJLord
    @AJLord Před 29 dny +3

    10:56 the figure eight reminds me of vs. susie from deltarune
    similar note progression, just in a higher key

  • @AlanKey86
    @AlanKey86 Před měsícem +2

    My favourite is at 10:19
    This is a great concept

  • @thepearlking4417
    @thepearlking4417 Před 29 dny +1

    Loved the tables.

  • @circuitguy1010
    @circuitguy1010 Před měsícem +7

    Life is music.

  • @jodamoxghesta4395
    @jodamoxghesta4395 Před 15 dny +3

    If only John Conway could listen to this...

  • @jimsvideos7201
    @jimsvideos7201 Před 4 dny

    The Loafer in A Maj is surprisingly melodic.

  • @hesangasong
    @hesangasong Před měsícem +1

    dope concept!

  • @jamescanada3712
    @jamescanada3712 Před 12 dny +1

    This reminds me of The Secret of Mana from SNES.❤

  • @teaarson
    @teaarson Před 29 dny +2

    I actually really like the sound of 3:10, it makes my head feel empty like brown noise.

  • @geometryflame712
    @geometryflame712 Před dnem +1

    You should change the scale every iteration around the circle of fifths so you get key changes that might resolve somewhere

  • @zcu8404
    @zcu8404 Před měsícem +1

    great video!

  • @FourReddo
    @FourReddo Před 21 dnem +1

    8:53 i like this, give me some disney channel vibe

  • @gwynkoski980
    @gwynkoski980 Před 14 dny +1

    Someone needs to make this into a synth module, would make for a really interesting sequencer

  • @SquishmallowsUnited
    @SquishmallowsUnited Před měsícem +3

    oh my goodness gracious... i want to play with this so bad

  • @lego_by_leo
    @lego_by_leo Před měsícem

    Nice! It sounded better then I thought.

  • @kawaiiintelligenceagency3889

    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

  • @muggyate
    @muggyate Před 11 dny

    omg loafer sounds so good!

  • @TikyLikey
    @TikyLikey Před 26 dny +1

    I really like listening to Conway West :D

  • @diezelleprozo6047
    @diezelleprozo6047 Před měsícem +2

    canada goose sounds harmoniously chaotic, but good sounding

  • @masonsickler2878
    @masonsickler2878 Před 9 dny

    Loafer sounds really cool

  • @xitheris1758
    @xitheris1758 Před 13 dny +1

    When not thinned, it reminds me of music from Mr. Rogers Neighborhood.

  • @simp_lex
    @simp_lex Před 11 dny

    What a minimalistic sound :)

  • @SforzandoSongs
    @SforzandoSongs Před 14 dny +1

    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.

  • @daxterthefox
    @daxterthefox Před 25 dny +1

    9:30 Die hard sounds like it can used as part of an OST of a spooky mystery game

  • @AJ-ws5vy
    @AJ-ws5vy Před 12 dny +1

    It would be fun to have a program that takes a set of chords and tries to turn it into a conway pattern

  • @Nug_Lord
    @Nug_Lord Před 14 dny

    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

  • @genericobjectshow3440
    @genericobjectshow3440 Před 23 dny +1

    3:08 - wake up, new INTERLOPER soundtrack just dropped

  • @DawnNDew124
    @DawnNDew124 Před 13 dny

    The loafer was beautiful :)

  • @jonhycoincoin
    @jonhycoincoin Před měsícem +2

    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"

  • @fernandofernandez8569
    @fernandofernandez8569 Před 10 dny +2

    Sound very scary and good 6:12

  • @goge-
    @goge- Před 13 dny

    This recalls the Tarkus for me!

  • @rodrigoappendino
    @rodrigoappendino Před 17 dny +1

    The pinwheel is my new favourite object.

  • @Hooeylewissukz
    @Hooeylewissukz Před 27 dny +5

    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.

    • @paper177
      @paper177 Před 19 dny

      die hard sounds crazy tho

    • @xXTomokoKurokiXx
      @xXTomokoKurokiXx Před 13 dny +2

      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.

  • @FancyPotatOS
    @FancyPotatOS Před 9 dny

    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!

  • @discollife
    @discollife Před měsícem

    Id love to see someone use this to recreate pipular songs! Love the idea and the video ❤

  • @TheOne_6
    @TheOne_6 Před měsícem +1

    Nice!

  • @bruoche
    @bruoche Před měsícem +1

    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

  • @skilz8098
    @skilz8098 Před 27 dny +2

    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.

    • @thepotatotaxi2430
      @thepotatotaxi2430 Před 27 dny +1

      yeah because that's possible to implement 🤦‍♂️

  • @brennanlawson6108
    @brennanlawson6108 Před měsícem +1

    So cool

  • @layla_gamesYT
    @layla_gamesYT Před 25 dny +1

    My favorite ones:
    9:31
    8:01
    5:18

  • @cowabunga2246
    @cowabunga2246 Před 19 dny

    This is very interesting

  • @bowel_movement
    @bowel_movement Před 10 dny +1

    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

  • @ricardopaula4082
    @ricardopaula4082 Před 10 dny

    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

  • @Tom-lz9pu
    @Tom-lz9pu Před 12 dny

    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

  • @bochak9657
    @bochak9657 Před měsícem +7

    9:12 my absolute favourite

  • @Patternssquared
    @Patternssquared Před 11 dny

    As someone with the last name of conway, I can confirm this is awesome

  • @archandset
    @archandset Před měsícem +5

    That recurring pattern is too catchy…

  • @alextemplemusic
    @alextemplemusic Před 15 dny +1

    These sound especially good at 2x speed!

  • @yveltheyveltal5166
    @yveltheyveltal5166 Před 13 dny +1

    I think Die Hard is underappreciated, I loved that.

  • @WolfWalrus
    @WolfWalrus Před 14 dny

    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

  • @ygnoen6685
    @ygnoen6685 Před 22 dny

    for the loafer, A major, highest newborn on string, the beginning gave crazy "amazing digital circus" vibes