# Pendulum Choir

> 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.

- Type: Lab Skill (downloadable Agent Skill)
- Category: [Interactive 3D](https://www.sandbase.ai/skills/interactive-3d)
- Version: 1.0.2
- Runs online: yes
- Page: https://www.sandbase.ai/skills/interactive-3d/pendulum-choir

## What you get

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.

## Install

Download the Skill package from https://www.sandbase.ai/skills/interactive-3d/pendulum-choir (sign-in required), unzip it into your agent's skills folder, then ask your agent to use it:

```text
/pendulum-choir build a pendulum-wave scene for <your setting, number of pendulums and pace>
```

## How it works

1. **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.
2. **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.
3. **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.

## FAQ

### 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.

## Examples

- Pendulum Choir pendulum row (scene)
- One Minute, Twelve Voices (video)
