Тёмный

Toothpick Sequence Visualized with Circle of Fifths Harmony | 256 Steps 

AlgoMotion
Подписаться 31 тыс.
Просмотров 8 тыс.
50% 1

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

Наука

Опубликовано:

 

12 мар 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 33   
@Jack_Hodkinson
@Jack_Hodkinson 2 месяца назад
I can't be the only one weirdly captivated by this
@cannox255
@cannox255 2 месяца назад
Yeah you probably are
@Vinneo3041
@Vinneo3041 2 месяца назад
no youre not
@DaveLopez575
@DaveLopez575 Месяц назад
You’re not 😎
@uchraltamir1246
@uchraltamir1246 Месяц назад
It's not a problem😊
@gabrielaguiar1935
@gabrielaguiar1935 2 месяца назад
Looks like my dwarf fortress bedroom setup
@subtg
@subtg 2 месяца назад
the sounds make me calm and feel threatend at the same time while i watch this thing grow...
@SquareWaveHeaven
@SquareWaveHeaven 2 месяца назад
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!
@lesarXD
@lesarXD 2 месяца назад
i like how the sizes of the gaps in the middle row/column are subsequent powers of 2
@confused-as-ell
@confused-as-ell 2 месяца назад
this is like getting a massage for my brain
@majorse203
@majorse203 2 месяца назад
The later stages remind me of Minecraft Nether Music, like Warmth or the intro of Concrete Halls
@Altered_Aether
@Altered_Aether 2 месяца назад
sometimes kinda spooky, sometimes reminds me of the true lab
@archandset
@archandset 2 месяца назад
Very inspiring stuff
@Altered_Aether
@Altered_Aether 2 месяца назад
that’s a lotta toothpicks
@Nihil2407
@Nihil2407 Месяц назад
"So, why'd you buy several hundred toothpicks again?" "I saw a RU-vid video and I was kind of bored..."
@Leonardo-cs4qe
@Leonardo-cs4qe 17 дней назад
I want to see 1024 patterns. I want to see another diversity of harmonies.
@gamma204
@gamma204 Месяц назад
Why does this fit so well for an analog horror
@Altered_Aether
@Altered_Aether 2 месяца назад
wonderful
@mdrdprtcl
@mdrdprtcl 2 месяца назад
This is awesome
@burgersnchips
@burgersnchips 5 дней назад
I like how it gets do close to stopping but, uh, life finds a way.
@HYP3RK1NECT
@HYP3RK1NECT 7 дней назад
Tengo un controlador midi y estaba improvisando un pasaje en Do mayor o La menor como acompañamiento
@MissBakedGoods
@MissBakedGoods Месяц назад
This might be completely random but it makes me want to design a fantasy city with the toothpicks being roads
@morgunstyles7253
@morgunstyles7253 Месяц назад
3:49 so, thats how the borg did it.
@hoagie911
@hoagie911 2 месяца назад
literally me tbh
@Vinneo3041
@Vinneo3041 2 месяца назад
reminds me of that ellipse billiard video
@tunasayl2928
@tunasayl2928 Месяц назад
How did you chose which key plays when
@tunasayl2928
@tunasayl2928 Месяц назад
And how did you do animation
@Racosz
@Racosz Месяц назад
A good figure for a Simcity map.
@user-su2pi9kf5v
@user-su2pi9kf5v Месяц назад
This is fractal of I
@mystifoxtech
@mystifoxtech 2 месяца назад
you should have done 257 iterations so it would resolve
@pamplemoo
@pamplemoo 2 месяца назад
It did resolve on a C
@BrokeInfinity3309
@BrokeInfinity3309 Месяц назад
Why does this sound like a Hans Zimmer?
@arthurdent4791
@arthurdent4791 Месяц назад
Yeah! Some sectións remind me of Inception's 'Time'
Далее
Пробую торты
00:43
Просмотров 240 тыс.
Complex Fibonacci Numbers?
20:08
Просмотров 1 млн
This Circle of 5ths Trick Blew My Mind
13:24
Просмотров 28 тыс.
What Jumping Spiders Teach Us About Color
32:37
Просмотров 1,5 млн
How do non-euclidean games work? | Bitwise
14:19
Просмотров 2,4 млн
Visualizing 70 Sorting Algorithms
29:24
Просмотров 42 тыс.
I Made Loading Animation using Math
6:19
Просмотров 41 тыс.
Circle Of Fifths Workout!
12:04
Просмотров 80 тыс.
Huawei который почти как iPhone
0:53
Просмотров 559 тыс.