Structure from Chaos: Fractals Generated on the Circle of Fifths via the Chaos Game

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 พ.ค. 2024
  • Running the chaos game on the circle of fifths, producing music to accompany the beautiful fractals that result.
    We start using a triangle on the notes C, E, and A♭ (forming an augmented chord), and play the chaos game to generate the Sierpiński triangle.
    Then we use a hexagon on the notes C, D, E, G♭, A♭, and B♭ (a whole-tone scale). For optimal packing, the ratio used to divide the lines in the chaos game is 0.667 for a hexagon.
    Next we use all 12 notes (the chromatic scale) to form a dodecagon fractal. The dodecagon is optimally packed with a ratio of 0.789 to divide the lines.
    Finally, we use a square (i.e. a diamond) on the notes C, E♭, G♭, and A (forming a diminished 7th chord). Playing the normal chaos game on a square, however, doesn't yield a fractal. It only produces uniform noise within the square. When a simple restriction is added: not allowing any corner to be repeated twice in a row, a beautiful fractal results.
    0:00 Sierpiński Triangle
    3:54 Hexagon Chaos Game
    7:05 Dodecagon Chaos Game
    10:27 Square Chaos Game
    ________
    Interested in learning more about fractals, algorithms, 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):
    ▶ "The Fractal Geometry of Nature" by Benoit B. Mandelbrot: amzn.to/4apa7pT
    ▶ "Fractals Everywhere" by Michael F. Barnsley: amzn.to/4apgh9r
    ▶ “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
    #fractal #math #music #beauty #art #mathematics #code #programming #computerscience #processing #java #visualization #algorithmicmusic #computermusic #experimental #hypnotic #randomness
  • เพลง

ความคิดเห็น • 93

  • @Vindilax
    @Vindilax หลายเดือนก่อน +87

    4:52 its amazing how similar this sounds to Chamber of Sages from Legend of Zelda.

    • @grishhung2828
      @grishhung2828 หลายเดือนก่อน +15

      It's the whole tone scale! That specific series of six notes, do, re, mi, fi, si, and li (which are, in this case, C, D, E, F#, G#, and A#) are often used for making mysterious, dreamlike songs in movies and video games. Each note is spaced two semitones apart. It sounds particularly like the Chamber of Sages here (which also uses this note set) because we're in the same key (C).

    • @TylrVncnt
      @TylrVncnt หลายเดือนก่อน +1

      Haha thought the same thing g

    • @baefaux
      @baefaux หลายเดือนก่อน +4

      It even looks a bit like the chamber of sages from top down too

  • @dragonfire.8271
    @dragonfire.8271 หลายเดือนก่อน +73

    So um, for the square: Yes it will not work if the line ratio is 0.5. Cuz in order to the sierpinski carpet to be made, you need the line ratio to be 2/3 at a random vertex AND MIDPOINT. So restricting the process is the only best way if you run the chaos game to the circle of fifths

  • @CiscoWes
    @CiscoWes หลายเดือนก่อน +39

    Played the video too loud and my furniture started to levitate. And I think I opened a portal.

  • @channalbert
    @channalbert 2 หลายเดือนก่อน +31

    9:00: Coltrane is jealous.

  • @BA-we6bv
    @BA-we6bv หลายเดือนก่อน +13

    Me trying to do every combination lock to get in my brothers phone:

  • @MrEthanhines
    @MrEthanhines หลายเดือนก่อน +18

    Must be what Spielberg was thinking b4 he made close encounters

  • @blobby-ur7vn
    @blobby-ur7vn หลายเดือนก่อน +10

    it would be interesting to hear what a different selection of notes assigned for the octaves or halving of the distances between the two points instead of repeating the same pitch. eg run through the harmonic series using that note that is being halved as the fundamental, eg at 0.49 E, E, B, E, G#B, D and based over a C fundamental C, C, G, C, E, G, Bb and etc

  • @BlackMoonMaster
    @BlackMoonMaster 2 หลายเดือนก่อน +23

    i love fractals

  • @marceloislas1413
    @marceloislas1413 หลายเดือนก่อน +11

    That is more the result of the chosen method rather than something to do with notes and music.

  • @watchtowerdragon7098
    @watchtowerdragon7098 หลายเดือนก่อน +6

    Chaos Within Structure
    =
    Structure Within Chaos

  • @twbvqc
    @twbvqc หลายเดือนก่อน +5

    i just listened to fractals for so long

  • @Nivaleia541
    @Nivaleia541 หลายเดือนก่อน +8

    Why is 0.789 used on the dodecahedron fractal?

  • @holyelephantmg8838
    @holyelephantmg8838 21 วันที่ผ่านมา +1

    2:25 *insert Zelda chest opening theme here*

  • @stanley9252
    @stanley9252 หลายเดือนก่อน +5

    Nice video! I had no idea about "chaos games".
    I'm curious, though, what language and libraries are you using for visualizing these fractals and playing the notes?

  • @D4N15H_
    @D4N15H_ 27 วันที่ผ่านมา +2

    1:35
    The sound is like c418 - cat

  • @jacpa2011
    @jacpa2011 2 หลายเดือนก่อน +3

    Its nice you doing other sort of content!

  • @reid_makes_art
    @reid_makes_art 2 หลายเดือนก่อน +6

    Super cool channel man!

  • @jaydensanimations7022
    @jaydensanimations7022 หลายเดือนก่อน +1

    7:01 Now *that* is what I call, the Koch Hexagram!

  • @sistajoseph
    @sistajoseph 2 หลายเดือนก่อน +2

    Beautiful

  • @TZG-cr1uc
    @TZG-cr1uc หลายเดือนก่อน +1

    The sounds are satisfying

  • @DaveLopez575
    @DaveLopez575 หลายเดือนก่อน +1

    3:25 fractal sounds.. awesome 😎

  • @morgunstyles7253
    @morgunstyles7253 หลายเดือนก่อน +1

    Great video

  • @juanpabloaraujotome5272
    @juanpabloaraujotome5272 หลายเดือนก่อน +1

    Sumamente interesante, saludos desde uruguay

  • @EntergeticalakaBot
    @EntergeticalakaBot 2 หลายเดือนก่อน +6

    Algomotion voice jumpscare???

  • @maxdoubt5219
    @maxdoubt5219 10 วันที่ผ่านมา

    So cool! Like a treasure hunt.

  • @deathhzrd
    @deathhzrd หลายเดือนก่อน

    The dodecagon is super cool

  • @alexaleman16
    @alexaleman16 หลายเดือนก่อน +2

    Sounds like hitting the jackpot on a slot machine, or so ive heard 😂

  • @davidknopp1208
    @davidknopp1208 หลายเดือนก่อน +3

    It’s the trifor

  • @LukesTheBomb
    @LukesTheBomb 14 วันที่ผ่านมา

    THE TRIFORCE IS REAL!

  • @Poetateoe
    @Poetateoe 20 วันที่ผ่านมา +1

    Why was 0.789 used for the Dodecahedron? Curious to look further into it

  • @OLIVE_MANN
    @OLIVE_MANN 19 วันที่ผ่านมา +1

    When are you releasing on spotify

  • @legendari-on-yt-you-mfers
    @legendari-on-yt-you-mfers หลายเดือนก่อน

    Debating using this for music inspo

  • @PupdudePwns
    @PupdudePwns หลายเดือนก่อน +1

    Sierpinski did the Triforce before it was cool

  • @Mareloko41
    @Mareloko41 หลายเดือนก่อน

    If we could use this to find of song of stars in the night sky that would be awesome

  • @rvsamsung77
    @rvsamsung77 หลายเดือนก่อน +1

    C augmented C-E-A ❤

  • @joaoericocaldasdelima7735
    @joaoericocaldasdelima7735 หลายเดือนก่อน

    1º - Suavemente

  • @aaroncornelison5229
    @aaroncornelison5229 หลายเดือนก่อน

    What happens in the sierpinski triangle if the initial point selected is in the largest "blank" triangle in the middle somewhere? Would it be the same but with an extra dot where you started?

    • @emeraldnickel
      @emeraldnickel หลายเดือนก่อน +1

      Yes - this is demonstrated in a short on this channel.

  • @Rubygal
    @Rubygal หลายเดือนก่อน

    Look at all the little triangle people

  • @pagezmusic5013
    @pagezmusic5013 หลายเดือนก่อน

    Make a mandelbrodt set next!!!

  • @96thelycan
    @96thelycan 27 วันที่ผ่านมา

    i belive if you changed tthe note to be jazz bass samples it would sound really fire

  • @pistol._.alexxx
    @pistol._.alexxx 28 วันที่ผ่านมา +1

    my teacher showed this video in class

  • @mcasualjacques
    @mcasualjacques หลายเดือนก่อน

    maybe the 3 circle points and the midway process are just using the chaos dots to display 'their' structure/ so it's not as much the chaos initially containing any structure. if the rules were for example non-equilateral placement, the chaos would 'display' the structure of that arrangement. But but maybe we could consider randomness a rule like the others, what happens next you won't believe! Just kidding i don't know what would come out of it. Oh you could use digits of pi or phi to replace random().

    • @mcasualjacques
      @mcasualjacques หลายเดือนก่อน

      i started writing this in Daz Studio (Qt/Javascript1) charged particles interacting through time so motion.
      ballz = Scene.findNodeByLabel("ballz");
      nodes = ballz.getNodeChildren();
      f = new Array()
      for( i = 0; i < n; i++ )
      {
      node = nodes[i];
      f[i] = Math.random() * 2 - 1;
      obj = node.getObject()
      if( obj )
      shp = obj.getShape(0)
      mat = shp.getMaterial( 0 );
      if( f[i] < 0 )
      mat.setDiffuseColor( Color( "blue" ) );
      else
      mat.setDiffuseColor( Color( "red" ) );
      }
      dsg

    • @mcasualjacques
      @mcasualjacques หลายเดือนก่อน

      we could say but not really understand "it's not order out of chaos, it's chaos into order or constrained by order, or marshalling chaos or classifying random things like positions (or distances) in the game's domain.

  • @juanpalml7
    @juanpalml7 6 วันที่ผ่านมา

    What if you select a dot inside of the void

  • @majorse203
    @majorse203 2 หลายเดือนก่อน +1

    wowie

  • @floretionguru2977
    @floretionguru2977 หลายเดือนก่อน

    Hey AlgoMotion, I also work with music, quaternions and the Sierpiński triangle. We should do a project together.

  • @jonatandjurachkovitch460
    @jonatandjurachkovitch460 27 วันที่ผ่านมา +1

    But this is true for any triangle, why the circle of fifths?

  • @thecloudwyrm7966
    @thecloudwyrm7966 2 หลายเดือนก่อน

    Interesting. Does the last shape have any sort of name? Great video

    • @AlgoMotion
      @AlgoMotion  2 หลายเดือนก่อน +1

      Not that I know of, just a cool looking fractal! Thanks for watching.

    • @jeffsmith9384
      @jeffsmith9384 หลายเดือนก่อน

      @@AlgoMotion it looks like a fps map

  • @attaulwasay
    @attaulwasay หลายเดือนก่อน

    Which software did you use to simulate?

  • @vyrezbeatz1159
    @vyrezbeatz1159 หลายเดือนก่อน

    What software is this and can it be used in a DAW like FL Studios. Thank you!

  • @durimmiziraj4815
    @durimmiziraj4815 หลายเดือนก่อน

    P5.js? Tell me pls.

  • @Fromyoutube640
    @Fromyoutube640 28 วันที่ผ่านมา

    1.Sierpiñski triangle
    2.Hexagon Chaos Game
    ...

  • @loveandoneness.n.e.t
    @loveandoneness.n.e.t หลายเดือนก่อน

    Is there any correlation between chaos game and cymatics? Seems the organization is similar, in a way

  • @chry003
    @chry003 8 วันที่ผ่านมา

    I tried doing it, but it doesn't work.. Maybe I didn't do it correctly idk.

  • @facundomonaco2733
    @facundomonaco2733 หลายเดือนก่อน

    Does anyone know what kind of app or program is he using for this?

    • @drdca8263
      @drdca8263 หลายเดือนก่อน

      Presumably code he wrote?

  • @gbyt034
    @gbyt034 หลายเดือนก่อน

    at ~0:25 the inside out theme's motif plays

    • @gbyt034
      @gbyt034 หลายเดือนก่อน

      0:23 allows one to hear it in full

  • @elbonnieto8929
    @elbonnieto8929 25 วันที่ผ่านมา

    7:55 minecraft music disc

  • @alexrayder1
    @alexrayder1 หลายเดือนก่อน

    That's interesting but, what is the point of using notes if you're not doing it for scales ?

  • @shikaishik
    @shikaishik หลายเดือนก่อน

    何でこうなるのですかね?
    あと、中東のマカームをベースに作図したらどうなりますかね?

  • @azid_hsb
    @azid_hsb 2 หลายเดือนก่อน

    Do more bogosort live please?

    • @AlgoMotion
      @AlgoMotion  2 หลายเดือนก่อน

      It's live right now!

    • @azid_hsb
      @azid_hsb 2 หลายเดือนก่อน

      Okay

  • @Bozpot
    @Bozpot 7 วันที่ผ่านมา

    It sounds like Arkenoid.

  • @matthewgrabowski9212
    @matthewgrabowski9212 4 วันที่ผ่านมา

    If you want a headache watch this video

  • @neopalm2050
    @neopalm2050 หลายเดือนก่อน

    chaos game is my least favourite way of rendering an IFS, but I guess the better ways can't be easily turned into music.

  • @titaniumbone5979
    @titaniumbone5979 2 หลายเดือนก่อน

    voice reveal?

  • @bantri256
    @bantri256 หลายเดือนก่อน

    It sounds, like the
    Duran Hungry Wolf arpeggio:
    th-cam.com/video/xROKxMbsIRA/w-d-xo.html

  • @shredhappy101
    @shredhappy101 หลายเดือนก่อน +1

    The second one sounds almost exactly like Zelda OoT

  • @defitsch
    @defitsch 2 หลายเดือนก่อน +11

    Has nothing to do with the circle of fifths though. It just depends if you start with an equilateral polygon like triangle, hexagon, etc. It's not the magic of music, as one might think when reading the title ;)

    • @AlgoMotion
      @AlgoMotion  2 หลายเดือนก่อน +19

      The circle of fifths is just being used here as a vehicle for adding *audio* to these well-known fractal visualizations. It facilitates a basic form of *algorithmic composition* of music to accompany the chaos game visuals (algorithmic composition is a common theme on this channel).
      It should be clear that the circle of fifths is not "producing" the fractals, but rather the fractals are just being superimposed on top of the circle of fifths, merely to add a musical element.

  • @Mareloko41
    @Mareloko41 หลายเดือนก่อน

    Did you purposely stayed away from the center?

    • @gfghdgfghd6391
      @gfghdgfghd6391 หลายเดือนก่อน

      The triangle cannot be in the center because of the way the points are oriented

    • @gfghdgfghd6391
      @gfghdgfghd6391 หลายเดือนก่อน

      If you start in the center, there will be 1 dot in the center of the serpenski triangle

    • @gfghdgfghd6391
      @gfghdgfghd6391 หลายเดือนก่อน

      The aspect ratio prevents it from being in the center for the rest of the

  • @Titus2.3-5
    @Titus2.3-5 หลายเดือนก่อน

    Pretty snowflakes

  • @Vlow52
    @Vlow52 หลายเดือนก่อน

    Basically, a complicated cherry picking, it works only because of restrictions of an angles you start with. If you would really take it randomly, it would be just a mess.

  • @savonliquide7677
    @savonliquide7677 หลายเดือนก่อน

    What is the connections with circle of fifth? Except the circle? The notes are not even related to the position or angle inside but only to the random note (and not even the good one) i dont t deny the beauty of maths here (that are not a scoop but ok it is nice) but why underlying lies like wrong links

    • @chaosme1ster
      @chaosme1ster หลายเดือนก่อน +1

      The 3 points on a circle producing the Sierpinski triangle (the 1st example in the video) is a well-known mathematical phenomena. The circle of fifths really has nothing to do with it, just as the "halfway" notes are in no way "halfway" between anything and anything. I don't mind though -- I think the fractals still are cool and (for most people) unexpected, and the notes add a fun dimension to watching the video.

  • @themichaelconnor42
    @themichaelconnor42 20 วันที่ผ่านมา

    This isn't chaos at all. Your initial limitations are where the structure comes from. It's like dumping a bunch of sand on top of a bucket, then blowing away all the sand until only the bucket remains and saying... Look! Structure from chaos!

  • @isohumulone
    @isohumulone หลายเดือนก่อน

    1, Your first point cant be randomly placed. 2. This has nothing to do with the circle of fifths.

  • @QuindaliusBarnacleJonesJr.
    @QuindaliusBarnacleJonesJr. หลายเดือนก่อน

    This is kinda cool but it has literally nothing to do with the circle of fifths.