# Drum Seismograph

> A clockwork drum seismograph recording onto helical paper. One damped oscillator driven by a signal model traces microseisms, teleseisms and calibration pulses.

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

## What you get

Bring a seismic signal model and the drum to record on. The Skill returns a downloadable Skill and a runnable seismograph.

## Install

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

```text
/drum-seismograph build a recording instrument on <your signal model>
```

## How it works

1. **Pick a station brief** Drum Seismograph reads its copy from assets/briefs/*.json: document title, station name, dial labels, control names, telegraph formats, the about notice and the time format. The mechanism lives in src/recorder.js and the observatory plate in src/index.template.html. A prompt such as "Use drum-seismograph to build a recording instrument on an ocean swell model" points the agent at the signal model to swap.
2. **Build and drive the drum** Run npm install and npm run build to produce one bilingual HTML file with both briefs embedded, then npm run demo to open it on localhost port 63120. One damped oscillator inks a helical trace on ruled paper. Space or a tap knocks the pier, a drag shakes the trace, and the rail offers tap, mallet, teleseism and change-paper actions plus three drum speeds and three pen gains.
3. **Verify the readings** npm run shoot runs 17 offline checks in a headless browser: microseisms breathe, a knock rings down, the drum lays 7 lines a minute at x30, minute ticks stamp, and a teleseism lands P, S and L flags in order. The reference case reads an S minus P gap of 36 seconds as 330 km and magnitude 5.4. Check that the ledger row and the telegraph slip show those values.

## FAQ

### What does Drum Seismograph show?

Drum Seismograph shows a clockwork observatory seismograph recording onto a helical paper sheet. A sprung-mass pen traces microseisms, seeded teleseisms and your own knocks on the pier. The page also carries an elevation drawing of the machine, five brass dials, a telegraph slip that types each analysed shock and a night ledger with a pinned notice on how to read it.

### Is the Drum Seismograph trace really simulated?

Yes. Drum Seismograph integrates a damped oscillator at a step of 1/240 rather than drawing a curve. The pen is driven by six microseism harmonics under a sea-state envelope, P, S and surface wave packets for each teleseism, and the impulses from visitor knocks. A reading that exceeds the pen limit is clipped and recorded as pen off scale.

### How does Drum Seismograph estimate distance and magnitude?

Drum Seismograph multiplies the S minus P time in seconds by 9.3 to get a distance in kilometres. It then applies log10 A plus 2.76 times log10 d minus 2.48 to class the magnitude. The analyser writes both values back as a marginal note, flag letters on the sheet and a row in the ledger.

### Does Drum Seismograph need a key or model calls?

No. Drum Seismograph runs offline and makes no model calls at runtime, so opening or recording the scene is not billed.

### Can Drum Seismograph record something other than earthquakes?

Yes. Drum Seismograph keeps its wave shapes in one function, evWave, and its picking rule in the analyser. Swap the packets for infrasound, ocean swell or machinery vibration and the same drum, pen and sheet record them. Swap the analyser and the sheet still writes its own notes and ledger rows.

### Why do Drum Seismograph knocks appear separately in the ledger?

Drum Seismograph logs visitor knocks as local disturbance entries, kept apart from the Earth's events. A second, stiffer recorder traces the building's own motion, so a shake from the pier reads differently from a teleseism. That separation is one of the 17 checks that npm run shoot asserts.

## Examples

- Drum Seismograph observatory recorder (scene)
- The Clockwork Drum (video)
