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 - Наука та технологія
I can't be the only one weirdly captivated by this
Yeah you probably are
no youre not
You’re not 😎
It's not a problem😊
the sounds make me calm and feel threatend at the same time while i watch this thing grow...
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!
Looks like my dwarf fortress bedroom setup
i like how the sizes of the gaps in the middle row/column are subsequent powers of 2
this is like getting a massage for my brain
I made this series up long before I saw this. Amazing!
The later stages remind me of Minecraft Nether Music, like Warmth or the intro of Concrete Halls
sometimes kinda spooky, sometimes reminds me of the true lab
that’s a lotta toothpicks
"So, why'd you buy several hundred toothpicks again?"
"I saw a UA-cam video and I was kind of bored..."
Very inspiring stuff
I want to see 1024 patterns.
I want to see another diversity of harmonies.
Why does this fit so well for an analog horror
This is awesome
wonderful
This might be completely random but it makes me want to design a fantasy city with the toothpicks being roads
I like how it gets do close to stopping but, uh, life finds a way.
literally me tbh
reminds me of that ellipse billiard video
3:49 so, thats how the borg did it.
Tengo un controlador midi y estaba improvisando un pasaje en Do mayor o La menor como acompañamiento
A good figure for a Simcity map.
This is fractal of I
How did you chose which key plays when
And how did you do animation
you should have done 257 iterations so it would resolve
It did resolve on a C
what the sigma
Why does this sound like a Hans Zimmer?
Yeah! Some sectións remind me of Inception's 'Time'