Pendulum Choir
- Lab Skill
- v1.0.2
- Interactive 3D
Twelve brass bobs on a timber stand, each making one more whole beat per minute than its neighbour, so the row drifts through four-part, three-part and alternating figures and strikes one shared beat at the sixtieth second.
ตัวอย่าง
Pendulum Choir pendulum row
ตัวอย่างนี้ทำงานในเฟรมแบบ sandbox ที่ไม่มีสิทธิ์เข้าถึงหน้านี้
รันออนไลน์
รันใน SandBase sandbox และดูผลลัพธ์ของคุณใน Lab
เปิดใน Lab ↗สิ่งที่คุณจะได้รับ
Bring how many pendulums to hang and how fast to run the minute. The Skill returns a downloadable Skill and a runnable pendulum-wave scene.
วิธีการทำงาน
- 01
Build the pendulum row page
Pendulum Choir needs only npm install, which brings in playwright-core for the checks, then npm run build for one bilingual dist/index.html or npm run build:zh for a Chinese-only page from the lamp-zh brief. The timber stand, twelve brass bobs, overhead wave trace and seconds dial are Canvas 2D and SVG code with no image assets and no network requests, so the page runs offline.
- 02
Count whole beats for every bob
Bob i makes 44 + i whole beats in a 60-second cycle, so its period is 60 / n and its string length follows L = g·(T/2π)². Every angle is A·cos(2π·n·t/60) of one clock t, with nothing integrated. Phases that agree within a tenth of a swing count as one voice, which sorts the row into four, three and two voices at 15, 20 and 30 seconds.
- 03
Play, scrub and check the minute
Open dist/index.html, or add ?lang=zh-CN for Chinese, and press gather again to drop the bar and restart the minute. Pace offers half, as written, double and hurried; choir rebuilds the row with 8, 12 or 16 voices; the position scale scrubs the minute and moments jump to named figures. npm run shoot then checks the beat counts, the named figures and the return at sixty seconds in headless Chrome.
คำถามที่พบบ่อย
What is a pendulum wave in Pendulum Choir?
A pendulum wave is a row of pendulums whose lengths are graded so each makes one more swing per cycle than its neighbour. In Pendulum Choir the slowest of twelve brass bobs makes 44 beats a minute and the quickest 55, so the row drifts out of step into a travelling wave, sorts into four, three and two groups, and lines up again at the sixtieth second.
Why does Pendulum Choir line up again after a minute?
Pendulum Choir lines up at the sixtieth second because every bob makes a whole number of beats in the 60-second cycle, so each one finishes its last beat at the same moment. The motion is computed in closed form from one clock rather than integrated step by step, so no error builds up and scrubbing to any second shows the exact position of every bob.
Does Pendulum Choir need an API key?
No. Pendulum Choir runs offline in the browser and calls no model, so there is no API key to set up and nothing to bill. The stand is baked once per resize into an offscreen layer and the bobs are cached brass sprites, all drawn by code in one HTML file. npm install only fetches playwright-core, which the headless checks use.
Is Pendulum Choir a physical simulation?
Partly. Pendulum Choir uses the ideal small-angle pendulum, with string lengths from L = g·(T/2π)², but it models no damping, no air drag and no coupling between bobs. The bar that gathers and releases the row runs on a hold, lift, free and catch phase machine whose timings are theatrical rather than physical, and it blends the bobs so the row never snaps into place.
Can I change the number of pendulums in Pendulum Choir?
Yes. The Pendulum Choir choir buttons rebuild the row with 8, 12 or 16 voices and gather it again under the bar, keeping the rule that each bob makes one more whole beat per minute than its neighbour. The pace buttons run the minute at half speed, as written, double or hurried, and the position scale scrubs to any second of the cycle.
What are the named moments in Pendulum Choir?
Pendulum Choir names six moments in its minute: unison at 0 seconds, four-part at 15, three-part at 20, alternating at 30, three-part again at 40 and four-part again at 45. The moment buttons jump the clock straight there, and a caption under the row names the current figure and how many clusters of voices are sounding.
Does Pendulum Choir support reduced motion?
Yes. With reduced motion set, Pendulum Choir halves the pace and drops the fading trail on the overhead wave, and it follows the system setting while the page is open. The page also reads ?lang=en, the default, or ?lang=zh-CN to pick its copy, and the bilingual build embeds both languages in the same file.
Skills เพิ่มเติม
Skills ทั้งหมดสำหรับ Interactive 3D →
Resin Diorama
Live 3D resin-block dioramas in your browser: send a little tram across a clear turquoise sea, or ripple the bay of a cliff island. Synthesized sound, and every scene can be tuned.

3D Vehicle Worlds
Explore interactive 3D vehicle worlds in your browser, with varied terrain, camera controls and driving effects. Choose a playable example to begin.

3D Firefly Terrariums
Turn a thick glass miniature, scatter glowing fireflies and open its brass lid. Actual particles leave through the neck and return before it seals. A moonlit cabin, forest and real local lights in one offline HTML.

Jelly Candy: Fruit Bears
Six translucent fruit gummies on a white table. Grab any part and pull, lift a head until the neck stretches thin, press one flat until it springs back, flick one across the pile or pour in more. Fixed-step soft-body physics and a marching-cubes skin in one offline HTML.

WebGPU Soft-Body Gummy Bears
Four translucent gummy bears on an ivory floor, rendered with native WebGPU. A deterministic 36-second choreography stretches, presses, flips and tumbles them before they settle back to the exact rest pose. Drag any bear to stretch, squish or toss it. A fixed-step tetrahedral XPBD solver in one offline HTML.

Stone Stars: 3D Miniature Landmark City
Turn a city into a storybook 3D island around one landmark, with chapters, a daylight-to-starlight slider, street life and a matching scored 24-second film. Sample: a Gaudí-style basilica.

