Toothpick Sequence Visualized with Circle of Fifths Harmony | 256 Steps

Поділитися
Вставка
  • Опубліковано 12 бер 2024
  • Visualizing the Toothpick Sequence to 256 steps, with musical harmony based on the circle of fifths.
    In the The On-Line Encyclopedia of Integer Sequences (OEIS), the Toothpick Sequence is sequence number A139250: oeis.org/A139250
    To generate the toothpick sequence, at each step add a toothpick to the end of every "exposed" toothpick. Two toothpicks may never overlap, and the midpoint of each new toothpick must touch the endpoint of exactly one existing toothpick. An endpoint is "exposed" if it does not touch any other toothpick.
    At steps of the form 2^k (powers of 2), the number of new toothpicks at those steps are equal to 2^k, and they are always placed along two lines perpendicular to the initial toothpick.
    Chord Selection:
    =============
    The chords move through the circle of fifths until a "power of 2" step is reached. Each chord is selected so that every time we arrive at a "power of 2" step, the chord is a C.
    The exact quality of each chord was manually selected for each pitch class (i.e. for all 12 notes). The number of notes in each chord and the MIDI velocity of each note are functions of how many new toothpicks are placed at a given step.
    The code for creating this video was written in Java using the Processing graphical library (processing.org/).
    ________
    Interested in learning more about 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):
    ▶ “Algorithms” (4th Edition) by Robert Sedgewick & Kevin Wayne: amzn.to/3uo25xR
    ▶ “Effective Java” (3rd Edition) by Joshua Bloch: amzn.to/3HOnYJL
    ▶ “Python Crash Course, 3rd Edition: A Hands-On, Project-Based Introduction to Programming” by Eric Matthes: amzn.to/481jQ43
    ▶ “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
    #math #art #music #toothpick #sequence #circleoffifths #musictheory #algorithmicmusic #visualization #mathematics #cellularautomata #algorithm #java #code #computerscience #fractal #hypnotic #mesmerizing #calming #calmingmusic #audiovisual #studymusic #focusmusic
  • Наука та технологія

КОМЕНТАРІ • 35

  • @Jack_Hodkinson
    @Jack_Hodkinson 3 місяці тому +39

    I can't be the only one weirdly captivated by this

  • @subtg
    @subtg 3 місяці тому +21

    the sounds make me calm and feel threatend at the same time while i watch this thing grow...

    • @SendyTheEndless
      @SendyTheEndless 2 місяці тому +8

      It's far, far away... but one day, you'll hear those familiar chords in the distance... getting louder... and then... Earth consumed by toothpicks!

  • @gabrielaguiar1935
    @gabrielaguiar1935 3 місяці тому +23

    Looks like my dwarf fortress bedroom setup

  • @lesarXD
    @lesarXD 3 місяці тому +11

    i like how the sizes of the gaps in the middle row/column are subsequent powers of 2

  • @confused-as-ell
    @confused-as-ell 3 місяці тому +12

    this is like getting a massage for my brain

  • @goofclan2
    @goofclan2 6 днів тому

    I made this series up long before I saw this. Amazing!

  • @majorse203
    @majorse203 3 місяці тому +6

    The later stages remind me of Minecraft Nether Music, like Warmth or the intro of Concrete Halls

  • @Altered_Aether
    @Altered_Aether 3 місяці тому +6

    sometimes kinda spooky, sometimes reminds me of the true lab

  • @Altered_Aether
    @Altered_Aether 2 місяці тому +7

    that’s a lotta toothpicks

    • @Nihil2407
      @Nihil2407 2 місяці тому +2

      "So, why'd you buy several hundred toothpicks again?"
      "I saw a UA-cam video and I was kind of bored..."

  • @archandset
    @archandset 3 місяці тому +4

    Very inspiring stuff

  • @Leonardo-cs4qe
    @Leonardo-cs4qe Місяць тому +2

    I want to see 1024 patterns.
    I want to see another diversity of harmonies.

  • @gamma204
    @gamma204 2 місяці тому +1

    Why does this fit so well for an analog horror

  • @mdrdprtcl
    @mdrdprtcl 3 місяці тому +1

    This is awesome

  • @Altered_Aether
    @Altered_Aether 3 місяці тому +2

    wonderful

  • @MissBakedGoods
    @MissBakedGoods Місяць тому +1

    This might be completely random but it makes me want to design a fantasy city with the toothpicks being roads

  • @burgersnchips
    @burgersnchips 24 дні тому

    I like how it gets do close to stopping but, uh, life finds a way.

  • @hoagie911
    @hoagie911 3 місяці тому +5

    literally me tbh

  • @Vinneo3041
    @Vinneo3041 2 місяці тому +1

    reminds me of that ellipse billiard video

  • @morgunstyles7253
    @morgunstyles7253 2 місяці тому +1

    3:49 so, thats how the borg did it.

  • @HYP3RK1NECT
    @HYP3RK1NECT 26 днів тому +1

    Tengo un controlador midi y estaba improvisando un pasaje en Do mayor o La menor como acompañamiento

  • @Racosz
    @Racosz 2 місяці тому

    A good figure for a Simcity map.

  • @StopYFGA
    @StopYFGA 2 місяці тому +1

    This is fractal of I

  • @tunasayl2928
    @tunasayl2928 2 місяці тому +1

    How did you chose which key plays when

    • @tunasayl2928
      @tunasayl2928 2 місяці тому

      And how did you do animation

  • @mystifoxtech
    @mystifoxtech 3 місяці тому +1

    you should have done 257 iterations so it would resolve

    • @pamplemoo
      @pamplemoo 3 місяці тому +2

      It did resolve on a C

  • @uselessdeadonez
    @uselessdeadonez 12 днів тому

    what the sigma

  • @BrokeInfinity3309
    @BrokeInfinity3309 Місяць тому +1

    Why does this sound like a Hans Zimmer?

    • @arthurdent4791
      @arthurdent4791 Місяць тому +1

      Yeah! Some sectións remind me of Inception's 'Time'