Перейти к содержимому

Classical Music, Played Using Only Math

What Does the Formula Sing?

0:00 / 0:00

Classical Music, Played Using Only Math

83 просмотра · 10 дн. назад
What Does the Formula Sing?
89 подписчиков
83 просмотра · 10 дн. назад
Eight classical hits, and every sound is a math formula. Each piece gets its own voice, an equation turned into a synthesizer, and every line on screen is drawn by the same math you hear. 0:00 Rondo alla Turca (Turkish March) — Mozart · 8-bit pulse waves 0:53 Für Elise — Beethoven · FM synthesis 1:45 Gymnopédie No. 1 — Satie · pendulum-wave bells 2:42 Flight of the Bumblebee — Rimsky-Korsakov · Fourier-series saw 3:38 Canon in D — Pachelbel · Karplus–Strong plucked strings 4:34 Clair de Lune — Debussy · vibrating square plates 5:23 In the Hall of the Mountain King — Grieg · Karplus–Strong string + tanh distortion 6:19 Ode to Joy — Beethoven · additive Fourier organ The formulas: Turkish March: pulse wave p(t) = sgn(d − {f·t}), duty d = 1/8, 1/4, 1/2; noise drums from a 15-bit LFSR Für Elise: FM synthesis y = e^(−λt)·sin(2πft + I·e^(−βt)·sin(2π·r·f·t)); the riser is the logistic map x → r·x·(1 − x) Gymnopédie: 15 pendulums with periods T/(N + k); every swing strikes a bell, so they drift into waves and line up again Flight of the Bumblebee: y = Σ sin(2πkft)/k, where the number of harmonics K follows the Lorenz attractor Canon in D: Karplus–Strong, y(n) = ½·(y(n−N) + y(n−N−1)), a delay line that turns noise into a plucked string Clair de Lune: square-plate modes, f(m,n) ∝ m² + n², with sand settling on the Chladni patterns In the Hall of the Mountain King: one Karplus–Strong string through y = tanh(g·x); the drive g rises with the tempo Ode to Joy: y = Σ a_k·sin(2π·h_k·f·t) with organ drawbars h_k = ½, 1, 3/2, 2, 3, 4, 5, 6, 8, then every voice above sings the theme together Every sound and frame is generated from math in code. No samples, no instruments. All eight compositions are in the public domain. Note data from the Mutopia Project; Canon in D score: "Canon per 3 Violini e Basso", Mutopia Project (# 2047), CC BY 4.0. #classicalmusic #math #synthesizer